【原創】mybatis配置文件報錯:The content of element type "configuration" must match "(properties>settings>typeA

最近使用mybatis,在mybatis的xml配置文件中老是會提示錯誤mybatis

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)依次向後排列書寫。app

相關文章
相關標籤/搜索