Invalid bound statement (not found): com.xxx.mybatis.mapper.UserMapper.getAllUser
时间: 2023-10-14 07:32:15 浏览: 101
MybatisPlus BaseMapper 中的方法全部 Invalid bound statement (not found Error处理)
5星 · 资源好评率100%
Invalid bound statement (not found): com.xxx.mybatis.mapper.UserMapper.getAllUser这个错误是由于找不到getAllUser这个方法引起的。通常这个问题是因为mybatis无法找到对应的映射语句。根据引用和引用的描述,你在UserMapper里已经定义了getAllUser这个方法,但是出现这个错误可能是因为mybatis无法正确加载你的xml配置文件。根据引用的解释,可能是由于项目的maven配置导致的。maven项目默认只会加载编译资源目录下的配置文件,而你的xml文件是写在java目录下的,所以在编译的时候没有被正确加载,导致mybatis无法找到对应的映射语句。解决这个问题的方法是将xml配置文件移动到正确的位置,或者修改maven配置,让它能够正确加载你的xml文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot+mybatis 报Invalid bound statement (not found): com.example.arthorn.dao.mapper.UserMapper....](https://blog.csdn.net/qq_35556822/article/details/104709611)[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):com.****.mapper](https://blog.csdn.net/huchaun/article/details/118493396)[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 ]
阅读全文