Invalid bound statement (not found): com.gec.mapper.UserMapper.selectById
时间: 2023-10-17 15:35:32 浏览: 111
当出现"Invalid bound statement (not found): com.gec.mapper.UserMapper.selectById"错误时,通常是由于以下几个问题导致的:
1. UserMapper.xml文件中没有配置名为"selectById"的statement。请检查UserMapper.xml文件中是否存在该方法的映射配置。
2. UserMapper.xml文件中的namespace路径错误。请确保namespace路径与Java接口的包路径一致。
3. UserMapper.xml文件中定义的每个statement的id错误。请检查是否正确配置了selectById方法的id。
4. UserMapper.xml文件中的parameterType路径错误。请确保parameterType的路径与Java实体类路径一致。
5. UserMapper.xml文件中的resultType路径错误。请确保resultType的路径与Java实体类路径一致。
请根据上述问题逐一检查并修复,以解决"Invalid bound statement (not found)"错误。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Invalid bound statement (not found)错误的几种解决方法](https://blog.csdn.net/qq_41172982/article/details/102393413)[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* [springboot invalid bound statement (not found)终极解决办法](https://blog.csdn.net/qq_39879542/article/details/105930380)[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 ]
阅读全文