java mybatis-config.xml 配置文件顺序

 

 

 

Caused by: org.xml.sax.SAXParseException; lineNumber: 129; columnNumber: 17; 元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)"。

 

 

原因:

mybatis-config.xml配置文件配置时,要注意节点顺序

顺序同错误提示信息一致:

元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?

,databaseIdProvider?,mappers?)"。

posted @ 2017-04-17 16:52  小白快跑  阅读(1228)  评论(0编辑  收藏  举报