Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException

错误信息:

Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 43; 文档根元素 "mapper" 必须匹配 DOCTYPE 根 "configuration"。

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 MyBatisTest.main(MyBatisTest.java:18)

拷贝时注意下面:需要对相应位置进行修改



阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页