您的位置:首页 > 其它

mybatis 异常处理:Invalid bound statement (not found)

2017-10-18 02:00 393 查看
mybatis 的使用过程中提示错误:

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.msunsoft.mapper.HisLisReportMapper.getMaxMtcData

含义:HisLisReportMapper的getMtcData方法没有找到或者没有绑定

错误处理流程:

1.检查实现类中方法是否存在

2。检查Service类的这个方法是否存在

3.检查Mapper类的这个方法

4.对应的mybatis 的配置文件是否存在,里面数据是否配置正确

5.检查Mapper类是否被加载了

这个错误主要是因为在config的配置文件中没有加载这个xml文件

`
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: