org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.StudentDAO.getAll
时间: 2023-10-17 08:35:50 浏览: 101
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): dao.StudentDAO.getAll 是一个错误的绑定语句异常。这个异常通常是由于在MyBatis配置文件中找不到对应的映射语句所引起的。根据提供的引用信息,我注意到在mapper文件中没有找到getAll语句的定义。这可能是由于映射文件中没有正确定义或者映射接口中没有声明对应的方法。要解决这个问题,您可以确保mapper文件中定义了getAll语句,并且映射接口中声明了对应的方法。另外,也需要检查MyBatis配置文件中是否正确引用了mapper文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [MyBatis工程出现:无效绑定语句(未找到)](https://blog.csdn.net/csnz123123/article/details/118958947)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Mybatis学习总结](https://blog.csdn.net/qq_16657805/article/details/110873963)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文