org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.orange.springboot.mapper.UserMapper.selectStudent
时间: 2023-10-15 22:24:42 浏览: 59
这个错误信息是`org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.orange.springboot.mapper.UserMapper.selectStudent`,它表示在绑定语句时出现了问题,找不到对应的语句`com.orange.springboot.mapper.UserMapper.selectStudent`。要解决这个问题,你可以按照以下步骤进行操作:
1. 首先,检查你的Mapper接口`com.orange.springboot.mapper.UserMapper`中是否存在名为`selectStudent`的方法,确保方法名拼写正确并且方法存在。
2. 然后,检查`UserMapper.xml`文件中是否存在与`selectStudent`方法对应的SQL语句配置。确保在`mapper-locations`属性中指定的目录下包含了正确的XML文件,并且XML文件中有对应的`selectStudent`语句配置。
3. 如果以上步骤都正确,那么请检查一下你的`mybatis-config.xml`文件中是否正确指定了Mapper接口的扫描路径,确保MyBatis能够找到并加载到`com.orange.springboot.mapper.UserMapper`接口。
如果你按照以上步骤检查并且问题仍然存在,那可能是由于其他原因导致的。你可以进一步检查错误日志或者提供更多的上下文信息来帮助我们找到更精确的解决办法。<span class="em">1</span>
#### 引用[.reference_title]
- *1* [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.StudentMapper.s](https://blog.csdn.net/weixin_43221207/article/details/113101200)[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: 100%"]
[ .reference_list ]