org.apache.ibatis.binding.BindingException: Invalidbound statement (not found)
时间: 2023-09-23 11:06:36 浏览: 353
解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found
5星 · 资源好评率100%
当出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误时,通常是因为MyBatis无法找到对应的SQL语句映射。
要解决这个问题,可以按照以下步骤进行排查:
1. 首先,检查一下你的Mapper.xml文件中是否存在与该错误相关的SQL语句映射。确保SQL语句的id与Mapper接口中对应方法的名称一致。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)...](https://blog.csdn.net/weixin_34402408/article/details/86024348)[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* [【报错解决】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)](https://blog.csdn.net/qq_50914927/article/details/127091350)[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 ]
阅读全文