现象:项目正常启动没有问题,当写一个单元测试,就报 invalid bound statement (not found)。

Junit单元测试 invalid bound statement (not found)


原因:Mybatis配置文件配置扫描xml路径不能带*号,需要写完整(申明:该结论不作为技术原理解释,因为正常启动项目没有这个怪现象,用Junit启动才出现)。

解决:

Junit单元测试 invalid bound statement (not found)


相关文章:

  • 2021-05-14
  • 2022-01-19
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-01-02
  • 2021-05-26
  • 2021-05-02
相关资源
相似解决方案