mybatis-config.xml:报SAXParseException: The content of element type "configuration" must match

来源:互联网 发布:dp901单片机说明书 编辑:程序博客网 时间:2024/05/17 14:29

异常信息描述如下:

org.xml.sax.SAXParseException: The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,databaseIdProvider?,mappers?)".



解决:

按照properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,databaseIdProvider?,mappers?顺序重现排序configuration元素的子元素即可,mybatis就能正确解析节点了。

阅读全文
0 0
原创粉丝点击