org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.Hongxin.dao.BdProjectclassMapper.selectAll
时间: 2023-10-20 17:36:16 浏览: 44
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.Hongxin.dao.BdProjectclassMapper.selectAll 是一个错误信息,它表示在绑定Mapper接口和Mapper映射文件时发生了问题,具体是com.Hongxin.dao.BdProjectclassMapper.selectAll方法没有找到。
要解决这个问题,可以按照以下步骤进行分析和排查:
1. 检查启动类的配置:确保在启动类中正确配置了MyBatis的扫描路径和映射文件路径。
2. 检查Mapper接口和Mapper映射文件的对应关系:确认com.Hongxin.dao.BdProjectclassMapper接口和对应的Mapper映射文件是否存在,并且文件路径和命名是否正确。
3. 检查Mapper映射文件中的配置:打开com.Hongxin.dao.BdProjectclassMapper对应的Mapper映射文件,检查其中是否包含了名为selectAll的SQL语句,并且语句的id是否与接口中的方法名一致。如果没有找到对应的SQL语句或者id不一致,需要进行修正。
4. 检查Mapper接口的命名规范:确保Mapper接口的命名规范符合MyBatis的要求,一般是接口名与对应的Mapper映射文件名相同,并且放在同一个包路径下。
通过以上步骤的排查和修正,应该能够解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.Hongxin.dao.BdProjectclassMapper.selectAll的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
#### 引用[.reference_title]
- *1* *3* [解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx问题](https://blog.csdn.net/lvoelife/article/details/128017529)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *4* [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.xxx 的解决...](https://blog.csdn.net/Hello_World_QWP/article/details/126713075)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
相关推荐
![png](https://img-home.csdnimg.cn/images/20210720083516.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)