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

最近使用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)依次向后排列书写。

posted @ 2014-06-27 15:09  solo人生  阅读(2585)  评论(0编辑  收藏  举报