MyBatis的config.xml文件报错:The content of element type “configuration” must match
报错:
The content of element type “configuration” must match .
“(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?, plugins?,environments?,databaseIdProvider?,mappers?)".
原因是:config.xml中< configuration >标签下的其他标签没有按顺序排列
一定要按照这个顺序来:
<properties>,
<settings>>,
<typeAliases>,
<typeHandlers>,
<objectFactory>,
<objectWrapperFactory>,
<reflectorFactory>,
<plugins>,
<environments>,
<databaseIdProvider>,
<mappers>
这样就不会报错了。