org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.itheima.mapper.EmpMapper.select
时间: 2023-08-28 13:23:19 浏览: 135
你遇到的错误信息是org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.itheima.mapper.EmpMapper.select。这个错误通常是由于MyBatis找不到对应的SQL语句导致的。有几个可能的原因和解决方法可以尝试:
1. 确保你的SQL语句在对应的mapper.xml文件中存在。检查mapper.xml文件中是否有名为select的语句,并且namespace是否正确指向了对应的Mapper接口类。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)...](https://blog.csdn.net/weixin_34402408/article/details/86024348)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [【报错解决】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)](https://blog.csdn.net/qq_50914927/article/details/127091350)[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^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文