MyBatis-plus自带的方法遇到 invalid bound statement (not found) 问题解决
MyBatis-plus invalid bound statement (not found) 问题解决系统升级遇到MyBatis-plus invalid bound statement (not found) 问题解决。调用baseMapper的insert方法却遇到了invalid bound statement (not found) 。。。。。。由于使用baseMapper的自带的方法
文章共148字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
MyBatis-plus invalid bound statement (not found) 问题解决
系统升级遇到MyBatis-plus invalid bound statement (not found) 问题解决。
调用baseMapper的insert方法却遇到了invalid bound statement (not found) 。。。。。。由于使用baseMapper的自带的方法,所以也就没有对应的XXXMapper.xml文件,最终问题所在:将
SqlSessionFactoryBean bean = new SqlSessionFactoryBean();
改为:
MybatisSqlSessionFactoryBean bean = new MybatisSqlSessionFactoryBean();
最后附上官网解决方法:https://baomidou.com/guide/faq.html#%E5%87%BA%E7%8E%B0-invalid-bound-statement-not-found-%E5%BC%82%E5%B8%B8
更多推荐
已为社区贡献1条内容
所有评论(0)