码迷,mamicode.com
首页 > 其他好文 > 详细

【原创】mybatis配置文件报错:The content of element type "configuration" must match "(properties>settings>typeAliases>typeHa...

时间:2014-07-10 11:05:57      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   使用   文件   io   

最近使用mybatis,在mybatis的xml配置文件中总是会提示错误

The content of element type "configuration" must match "(properties>settings>typeAliases>typeHandlers>objectFactory>objectWrapperFactory>plugins>environments>mappers?)".

后来发现,其实是配置文件对各个标签的先后顺序有要求,必须按照他提示的这个顺序(properties>settings>typeAliases>typeHandlers>objectFactory>objectWrapperFactory>plugins>environments>mappers)依次向后排列书写。

【原创】mybatis配置文件报错:The content of element type "configuration" must match "(properties>settings>typeAliases>typeHa...,布布扣,bubuko.com

【原创】mybatis配置文件报错:The content of element type "configuration" must match "(properties>settings>typeAliases>typeHa...

标签:style   blog   color   使用   文件   io   

原文地址:http://www.cnblogs.com/love-julia/p/3812027.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!