org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ruoyi.property.mapper.CompanyMapper.selectPage
时间: 2023-10-17 08:28:54 浏览: 146
MyBatis绑定错误提示BindingException:Invalid bound statement (not found)的解决方法
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ruoyi.property.mapper.CompanyMapper.selectPage
这个异常出现的原因是在MyBatis中,绑定的语句无效(找不到)。根据引用和引用中的信息,可能是因为mapper接口与mapper配置文件的映射绑定出现了问题,即接口与XML文件无法找到或匹配不上。解决这个问题的方法是检查mapper接口与XML文件的映射绑定是否正确,确保接口方法的命名与XML文件中的对应语句的id一致。还需要确保mapper接口的命名空间(namespace)与XML文件中的namespace一致。如果还是无法解决问题,可以尝试重新生成mapper接口和XML文件的映射关系。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)报错问题](https://blog.csdn.net/weixin_54217216/article/details/124118507)[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* [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常的处理方式解决...](https://blog.csdn.net/weixin_46310452/article/details/112684747)[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 ]
阅读全文