问题现象:
Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 49; columnNumber: 17; 元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)"。
mybatis的配置文件configration里面是有顺序的
按照mybatis-3-config.dtd里面的顺序进行配置的
<!ELEMENT configuration (properties?, settings?, typeAliases?, typeHandlers?, objectFactory?, objectWrapperFactory?, reflectorFactory?, plugins?, environments?, databaseIdProvider?, mappers?)>
改变配置顺序即可解决上面的报错
标签:xml,BuilderException,sax,Error,org,Cause From: https://www.cnblogs.com/bhliuyou/p/16783227.html