Invalid bound statement (not found): com.zm.shopping.mapper.UserInfoMapper.selectByName
时间: 2023-10-20 11:32:16 浏览: 99
你遇到的问题是 Invalid bound statement (not found): com.zm.shopping.mapper.UserInfoMapper.selectByName 错误。这个错误通常发生在使用mybatisplus进行项目搭建时,在调用mapper方法查询数据库时出现。根据引用和的内容,解决这个问题的方法是在启动springboot对象上添加@MapperScan注解,并指定mapper文件所在的包名。同时,确保mapper文件中使用@Mapper注解标注接口。另外,根据引用的内容,还有一些其他可能的问题,比如检查xml文件所在package名称是否和Mapper interface所在的包名一一对应,检查xml的namespace是否和xml文件的package名称一一对应等。希望这些解决方案能帮助到你解决这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [mybatisplus报Invalid bound statement (not found)错误的解决方法](https://download.csdn.net/download/weixin_38625442/12821082)[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* [Invalid bound statement (not found): com.example.demo.mapper.getUser.](https://blog.csdn.net/xxpxxpoo8/article/details/127548543)[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 ]
阅读全文