Caused by: org.xml.sax.SAXParseException: 前言中不允许有内容。

springboot整合mybatis时遇到的一个异常:
原本映射xml的路径写的如下:

mybatis.mapper-locations=classpath*:/mybatis-mapper

后面加上*Mapper.xml即可:

mybatis.mapper-locations=classpath*:/mybatis-mapper/*Mapper.xml

猜你喜欢

转载自blog.csdn.net/qq_36666651/article/details/80064538