严重: Servlet.service() for servlet [springDispatcherServlet] in context with path [/meeting] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wc.mapper.DeptMapper.findById] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wc.mapper.DeptMapper.findById
异常之org.apache.ibatis.binding.BindingException
这种错误“主要”是mapper.java 和mapper.xml文件有差异,
可能出现的问题有:
1、文件名有差异,会导致绑定失败
2、mapper.xml 中的方法名与mapper.java中的方法名不对应
3、可能两边的参数或返回结果不一致。
4、其他问题
验证步骤:
如果mapper.java中只有一个方法有误,则可以能是是2、3中情况;
如果mapper.java中每个方法都有误,则可能是1、4种情况,但个人认为以1种情况为主。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-10-29
  • 2021-05-27
  • 2021-11-23
  • 2022-03-02
  • 2023-02-16
猜你喜欢
  • 2021-05-21
  • 2021-07-01
  • 2022-12-23
  • 2021-05-06
  • 2021-09-02
  • 2021-07-16
  • 2022-12-23
相关资源
相似解决方案