异常之org.apache.ibatis.binding.BindingException

严重: 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
这里写图片描述
这种错误“主要”是mapper.java 和mapper.xml文件有差异,
可能出现的问题有:
1、文件名有差异,会导致绑定失败
2、mapper.xml 中的方法名与mapper.java中的方法名不对应
3、可能两边的参数或返回结果不一致。
4、其他问题
验证步骤:
如果mapper.java中只有一个方法有误,则可以能是是2、3中情况;
如果mapper.java中每个方法都有误,则可能是1、4种情况,但个人认为以1种情况为主。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值