标签: java tomcat jaxb
我在从xml标头中删除独立时遇到一些问题。我试过了:
marshaller.setProperty("com.sun.xml.internal.bind.xmlDeclaration", Boolean.TRUE); marshaller.setProperty("com.sun.xml.internal.bind.xmlHeaders", "<?xml version=\"1.0\" encoding=\"UTF-8\"?>");