解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误

一把来说,出现这个问题大部分是以下这几个问题:
(转载https://blog.csdn.net/sundacheng1989/article/details/81630370,感谢博主的分享。)
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误
但是在spring-boot中,有可能是mapper包放置位置的问题。
解决方法有以下两种:
1)将mapper包放到resource包下
2)在application.properties中添加:mybatis.mapper-locations:classpath*:com/example/demo/Mapper/*.xml。这边要注意mapper包的路径要正确。