debug一路寻找,发现扫描xml文件的时候扫描到了mbeans-descriptor.xml文件而错误信息里有xian显示这个文件有问题。
怀疑是map扫描路径配置错误:
原来的配置路径:
mybatis:
mapper-locations:
- classpath*:com/**/mapper/*.xml
修改后
mybatis:
mapper-locations:classpath:/com/**/mapper/*.xml
debug一路寻找,发现扫描xml文件的时候扫描到了mbeans-descriptor.xml文件而错误信息里有xian显示这个文件有问题。
怀疑是map扫描路径配置错误:
原来的配置路径:
mybatis:
mapper-locations:
- classpath*:com/**/mapper/*.xml
修改后
mybatis:
mapper-locations:classpath:/com/**/mapper/*.xml