springboot中使用xml后出现Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xiaobai.mapper.KjOutcomeMapper.selectByTypeAndState]错误
时间: 2023-07-11 09:56:13 浏览: 84
这个错误通常出现在 MyBatis 的 Mapper.xml 文件中,可能是因为在 XML 中的某个地方使用了一个不存在的 SQL 语句,或者 Mapper 接口与 XML 中的语句不匹配。你可以按照以下步骤来排查这个问题:
1. 检查 Mapper.xml 文件中的语句是否存在,并且是否与 Mapper 接口中的方法名称和参数类型匹配。
2. 如果 Mapper.xml 文件中的语句存在,检查语句的命名空间是否正确。
3. 检查 MyBatis 的配置文件中是否正确配置了 Mapper.xml 文件的路径。
4. 如果以上步骤都没有解决问题,可以尝试重启应用程序,或者清除缓存并重新编译。
希望这些步骤可以帮助你解决这个问题。
相关问题
Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
mybatisplus Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
mybatisplus是一个基于MyBatis的增强持久化框架。根据提供的引用内容,出现"org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)"错误通常是因为在使用MyBatis-Plus时,Mapper接口与Mapper XML文件的绑定失败所致。
阅读全文
相关推荐
![png](https://img-home.csdnimg.cn/images/20210720083516.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.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)