newsInfoDocumentMapper.selectList(queryWrapper) .BindingException: Invalid bound statement (not found): com.yfyy.zero.search.es.mapper.es.NewsInfoDocumentMapper.selectList
时间: 2023-03-27 09:00:19 浏览: 74
这个问题是关于代码的,我可以回答。这个错误可能是由于 mapper 文件中没有定义名为 "com.yfyy.zero.search.es.mapper.es.NewsInfoDocumentMapper.selectList" 的语句导致的。您需要检查 mapper 文件中是否存在该语句,并确保语句的命名和路径正确。
相关问题
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):selectlist
`org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)`异常通常是因为MyBatis找不到映射文件中的某个语句引起的。这个异常通常有两种情况:
1.映射文件中没有定义该语句。
2.映射文件中定义了该语句,但是语句的ID与调用时的ID不匹配。
解决这个异常的方法如下:
1.检查映射文件中是否定义了该语句,如果没有定义,则需要添加该语句的定义。
2.检查调用时的ID是否与映射文件中定义的ID匹配,如果不匹配,则需要修改调用时的ID。
下面是一个例子,演示了如何解决`org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)`异常:
```java
// 映射文件中的语句定义
<select id="selectList" resultType="com.team.news.model.NewsDetail">
select * from news_detail
</select>
// 调用时的语句ID与映射文件中的语句ID不匹配,会抛出异常
List<NewsDetail> newsList = sqlSession.selectList("com.team.news.mapper.NewsDetailMapper.selectByExample");
// 修改调用时的语句ID,使其与映射文件中的语句ID匹配
List<NewsDetail> newsList = sqlSession.selectList("com.team.news.mapper.NewsDetailMapper.selectList");
```
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ruoyi.dossier.mapper.JzMenuMapper.selectList
引用:即错误信息为:nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cloud.lowcode.mapper.UserMapper.queryByParam。引用:程序报错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.xxx ”。引用:将该错误信息翻译成中文为嵌套异常是 org.apache.ibatis.binding.BindingException: 无法绑定当前com.cloud.lowcode.mapper包下的UserMapper类的queryByParam方法。根据您提供的错误信息,您遇到的问题是关于绑定异常的。具体地说,错误信息是无法找到com.ruoyi.dossier.mapper.JzMenuMapper.selectList的绑定语句。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):xxx问题](https://blog.csdn.net/lvoelife/article/details/128017529)[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* [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xxx.xxx 的解决...](https://blog.csdn.net/Hello_World_QWP/article/details/126713075)[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 ]