Invalid bound statement (not found): com.buba.kaoshi.mapper.TestMapper.updateById
时间: 2023-08-28 22:15:03 浏览: 136
根据提供的引用内容,可以得出以下解决方案。首先,要确保xml文件的namespace正确,XxxMapper接口必须与XxxMapper.xml文件同名且在同一个包下。也就是说,UserMapper.xml文件中的namespace应该是UserMapper接口的全类名。其次,需要检查build中是否正确配置了resources,以防止资源导出失败的问题。最后,还要确保spring配置文件没有写错,比如使用mybatis-plus但却写了mybatis的配置文件。根据提供的信息,出现"Invalid bound statement (not found): com.buba.kaoshi.mapper.TestMapper.updateById"的错误可能是因为XxxMapper.java中的方法在XxxMapper.xml中没有正确配置。需要检查XxxMapper.xml中是否存在具有相应id的语句。如果没有,请确保在XxxMapper.xml中正确配置了与XxxMapper.java方法对应的sql语句。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [Invalid bound statement (not found):常见报错原因解决](https://blog.csdn.net/weixin_45913922/article/details/129408350)[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^chatsearchT0_1"}} ] [.reference_item]
- *3* [Invalid bound statement (not found) 五种解决方法](https://blog.csdn.net/zykwblx/article/details/125425421)[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^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文