一把来说,出现这个问题大部分是以下这几个问题:
(转载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包的路径要正确。

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-02-04
  • 2021-11-24
  • 2022-01-12
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2021-12-19
  • 2021-05-23
  • 2021-09-09
  • 2021-11-15
  • 2021-12-16
相关资源
相似解决方案