1、报错信息
Invalid bound statement (not found): com.xxx.xxx.mapper.xxxMapper.xxx
2、原因
忘记在application.yaml里面写上mapper-locations: classpath:mappers/*.xml
3、解决办法
在application.yaml里面或application.properties里面写上mapper-locations: classpath:mappers/*.xml
例:
(在yaml里写需要注意加相应的空格,不然会报错)