springboot中mapper找不到实现方法

2021-07-12  本文已影响0人  明翼

报错信息如下:

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):  
xxxxx.xxx.method()

核对了:

1.  xml中的命名空间 结果一致
2. 方法名和返回类型均一致.
3. resultType和resultMap也配置没问题.
4. mapper的类名是不是public的.

一直没发现问题,最终找到原因是:

Mapper的接口名字和xml配置文件名不一致.
上一篇下一篇

猜你喜欢

热点阅读