Invalid bound statement (not found): com.znwl.agri.mserv.business.dao.reap.AgrTruckWaybillLoadRecordMapper.selectContractRecordListByConditions org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.znwl.agri.mserv.business.dao.reap.AgrTruckWaybillLoadRecordMapper.selectContractRecordListByConditions
时间: 2024-04-24 20:21:13 浏览: 124
这个错误是由于MyBatis无法找到指定的SQL语句引起的。根据错误信息,无法找到名为`com.znwl.agri.mserv.business.dao.reap.AgrTruckWaybillLoadRecordMapper.selectContractRecordListByConditions`的绑定语句。请确保在你的MyBatis映射文件中定义了该语句,并且文件路径和语句名称都是正确的。另外,还需要检查是否正确配置了MyBatis的映射文件位置和命名空间。如果仍然存在问题,请提供更多的代码和配置信息以便我能够帮助你进一步排查。
相关问题
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@19d1c2fe] 2023-06-06 14:04:50.458 ERROR 2804 --- [nio-8081-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.youzi.mapper.GuanggaoTypeMapper.selectById] with root cause org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.youzi.mapper.GuanggaoTypeMapper.selectById
这个错误信息显示在你的应用程序中出现了一个请求处理失败的异常,并且根本原因是一个绑定异常。异常信息显示 "Invalid bound statement (not found): com.youzi.mapper.GuanggaoTypeMapper.selectById",这意味着你的应用程序无法找到指定的绑定语句。这可能是因为语句的名称或路径不正确,或者语句没有被正确地加载到应用程序中。你需要检查你的代码和配置,确保绑定语句被正确定义和加载,以解决这个问题。同时,还需要注意关闭非事务性的 SqlSession,以避免潜在的资源泄漏问题。
阅读全文