Invalid bound statement (not found): com.ruoyi.yzghy.mapper.LeaveDataMapper.insert
时间: 2023-10-14 21:31:50 浏览: 285
mybatisplus报Invalid bound statement (not found)错误的解决方法
5星 · 资源好评率100%
在解决Mybatis-plus报错Invalid bound statement (not found)时,可以根据以下几个步骤进行排查和解决:
1. 首先,检查mapper的XML配置路径是否正确。如果mapper的XML配置路径不正确,可能导致找不到对应的SQL语句,从而引发Invalid bound statement (not found)错误。可以确认一下com.ruoyi.yzghy.mapper.LeaveDataMapper.insert对应的XML文件是否存在,并检查路径是否正确。
2. 其次,检查mapper的namespace是否正确。如果namespace写错了,也会导致找不到对应的SQL语句,从而报错Invalid bound statement (not found)。可以确认一下com.ruoyi.yzghy.mapper.LeaveDataMapper对应的namespace是否正确。
3. 另外,还可以检查一下SQL语句是否正确,包括语法、表名、列名等是否与数据库中的实际情况相符。
综上所述,解决Invalid bound statement (not found)错误的方法包括检查mapper的XML配置路径、namespace是否正确,并确保SQL语句的准确性。<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.ruoyi.stock.mapper.StockDetailMapper.xxxx解决](https://blog.csdn.net/qq_45637260/article/details/125560214)[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* [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%"]
[ .reference_list ]
阅读全文