错误详细信息(由于错误信息太长,截取部分):
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"这个顺序来书写,不然就无法解析报错了,实在令人尴尬