在初建springboot项目时,遇到一个非常头大的问题,就是在resources目录下新建mybatis的mapper映射文件,为了偷懒,多写了一级
mybatis报错:Invalid bound statement
就是多写了这一级,导致找不到mapper.xml
最终在target编译目录下找到问题,正确的目录应该是下面的
mybatis报错:Invalid bound statement
原本是mapper.cashier成了同级目录
踩到目录命名的坑,以此博客劝诫自己不要偷懒????

相关文章:

  • 2021-10-23
  • 2021-09-07
  • 2022-03-01
  • 2022-12-23
  • 2021-10-19
  • 2021-07-08
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-07-22
  • 2021-06-26
  • 2022-02-10
  • 2021-04-19
  • 2021-05-03
  • 2022-02-21
相关资源
相似解决方案