近期使用Springboot集成Mybatisplus,执行insert时一直报错,提示错误如下:
Invalid bound statement (not found): xx.insert
mapper继承baseMapper:
baseMapper有insert方法如下:
service调用mapper.insert(对象)报错
某度查找资料均不能解决问题,最终经查阅官方文档比对得知是缺少jar包导致。在pom.xml中引入:
com.baomidou mybatis-plus-boot-starter3.1.2 com.baomidou mybatis-plus-annotation3.1.2 com.baomidou mybatis-plus-extension3.1.2
附官方文档:
https://baomidou.com/guide/faq.html
到此这篇关于使用mybatis-plus报错Invalid bound statement (not found)错误的文章就介绍到这了,更多相关mybatis-plus报错not found内容请搜索考高分网以前的文章或继续浏览下面的相关文章希望大家以后多多支持考高分网!



