Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xm
java.lang.RuntimeException:Erroroccurred.Cause:com.ibatis.common.xml.NodeletException:ErrorparsingXML.Cause:org.xml.sax.SAXParseException:Theprocessinginstructionmustbeginwiththenameofthetarget.
atcom.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:89)
atcom.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:63)
atcom.haininghacker.model.Demo.main(Demo.java:16)
Causedby:com.ibatis.common.xml.NodeletException:ErrorparsingXML.Cause:org.xml.sax.SAXParseException:Theprocessinginstructionmustbeginwiththenameofthetarget.
atcom.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
atcom.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:86)
...2more
Causedby:org.xml.sax.SAXParseException:Theprocessinginstructionmustbeginwiththenameofthetarget.
atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource)
atcom.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(UnknownSource)
atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)
atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(UnknownSource)
atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(UnknownSource)
atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(UnknownSource)
atcom.sun.org.apache.xerces.internal.parsers.DOMParser.parse(UnknownSource)
atcom.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(UnknownSource)
atcom.ibatis.common.xml.NodeletParser.createDocument(NodeletParser.java:157)
atcom.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:50)
...3more
出现这个问题原因是:<?xmlversion="1.0"encoding="UTF-8"?>问号和xml之间多个空格