錯誤詳細信息(由於錯誤信息太長,截取部分):
Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,databaseIdProvider?,mappers?)".
其實錯誤原因很令人無語,就是mybatis的配置文件(不是映射文件)中的元素順序出錯了
必須按照"properties,settings,typeAliases,typeHandlers,objectFactory,objectWrapperFactory,plugins,environments,databaseIdProvider,mappers"這個順序來書寫,不然就無法解析報錯了,實在令人尷尬