MyBatis配置文件,节点顺序

properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?

顺序错误会导致报错:

Caused by: org.xml.sax.SAXParseException; lineNumber: xx; columnNumber: xx; 元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)"。

猜你喜欢

转载自blog.csdn.net/qingyou193301/article/details/83113915