Invalid bound statement (not found): com.study.mapper.UserMapper.selectById
时间: 2023-10-15 22:25:18 浏览: 139
mybatisplus报Invalid bound statement (not found)错误的解决方法
5星 · 资源好评率100%
根据你提供的引用内容,可以得出以下结论。首先,出现"Invalid bound statement (not found): com.study.mapper.UserMapper.selectById"的错误是因为在MyBatis-Plus持久化框架使用中,Mapper.java与Mapper.xml绑定失败导致的[1]。解决这个问题的方法是确保UserMapper继承的BaseMapper也要写上对应的范型。另外,你可以检查target目录下的classes>mapper下是否有相应的Mapper.xml文件,如果没有,需要手动添加。这些方法可以帮助你解决"Invalid bound statement (not found): com.study.mapper.UserMapper.selectById"的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Invalid bound statement (not found): com.cwp.study.dao.user.mapper.UserDao.selectByPrimaryKey解决...](https://blog.csdn.net/qq_45903282/article/details/127834922)[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* [mybatis-plus出错:Invalid bound statement (not found): com.kuang.mapper.UserMapper.selectList](https://blog.csdn.net/fuqiang133/article/details/126943324)[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 ]
阅读全文