Given Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance Cause: org.xml.sax.SAXParseException; lineNumber:. 2; columnNumber: 6; not allowed matching "[xX] [mM] [lL] "the processing instruction target.

An error 

<? Xml version = "1.0" encoding = "UTF-8"?> Must be the first element in the XML file and not in front of the space.

### Error building SqlSession.
### Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:80)
at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:64)
at com.ssm.test.Test.main(Test.java:22)

 

 

 

xml file space above it, resulting in a blank line 

No spaces or other things all in strict accordance with the norms of the first sentence xml <? Xml version = "1.0" encoding = "UTF-8"?> Ago

 

Guess you like

Origin www.cnblogs.com/caoxinfang/p/12616859.html