org.apache.ibatis.binding.BindingException: Invalid bound statement
时间: 2023-08-27 08:16:39 浏览: 164
这个错误通常是由于MyBatis无法找到绑定的语句引起的。可能的原因有几个。首先,你可以检查异常信息中提到的具体语句是否存在于你的Mapper接口中。如果不存在,你需要确保在Mapper接口中定义了正确的方法名并且与XML文件中定义的id一致。其次,你可以检查你的XML配置文件,确保正确地引入了Mapper接口,并且路径配置正确。此外,有时候IDEA没有编译生成相应的XML文件,你可以尝试重新编译项目以确保XML文件存在于target/classes目录下。希望这些提示能够帮助你解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [org.apache.ibatis.binding.BindingException: Invalidbound statement (not found)的解决方案和造成原因...](https://blog.csdn.net/m0_49499183/article/details/122082333)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [解决 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误](https://blog.csdn.net/weixin_43570367/article/details/103147854)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文