Я разрабатываю с затмением на jdk8.Приведенный ниже код дает мне эту ошибку:
'java.lang.IllegalStateException: org.xml.sax.SAXNotRecognizedException: функция' http://javax.xml.XMLConstants/feature/secure-processing' не распознана. '
И тогда я не могу найти pom.xml.поэтому я не могу добавить некоторую зависимость.
try
{
JAXBContext context = JAXBContext.newInstance(L1TreasureBox.TreasureBoxList.class);
Unmarshaller um = context.createUnmarshaller();
File file = new File(PATH);
TreasureBoxList list = (TreasureBoxList) um.unmarshal(file);
for (L1TreasureBox each : list) {
each.init();
_dataMap.put(each.getBoxId(), each);
}
} catch (Exception e) {
System.out.println("□ 로딩 실패");
System.out.println(e.toString());
System.exit(0);
}