SpringBoot整合mybatis报错org.apache.ibatis.binding.BindingException: Invalid bound statement not found异常

问题记录
问题是:找不到你项目映射文件(*.xml)
这里写图片描述
在application.properties文件中添加

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

如果属性文件是.yml的,添加

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

猜你喜欢

转载自blog.csdn.net/dsen726/article/details/80803950