springboot+mybatis Invalid bound statement (not found)扫描多个包

1、配置@MapperAcan
image.png
2、配置pom
image.png
3、配置application.yml(如果pom添加了mybatis-plus插件则需要配置mybatis-plus,mapper-locations的值一定要/.xml结尾,不能用/Mapper.xml等之类,否则会报错Invalid bound statement (not found))
image.png

你可能感兴趣的:(springboot+mybatis Invalid bound statement (not found)扫描多个包)