首页 > 编程技术 > java

使用mybatis-plus报错Invalid bound statement (not found)错误

发布时间:2020-9-2 11:23

近期使用Springboot集成Mybatisplus,执行insert时一直报错,提示错误如下:
Invalid bound statement (not found): xx.insert
mapper继承BaseMapper:


BaseMapper有insert方法如下:

service调用mapper.insert(对象)报错


某度查找资料均不能解决问题,最终经查阅官方文档比对得知是缺少jar包导致。在pom.xml中引入:

<dependency>
      <groupId>com.baomidou</groupId>
      <artifactId>mybatis-plus-boot-starter</artifactId>
      <version>3.1.2</version>
    </dependency>
    <dependency>
      <groupId>com.baomidou</groupId>
      <artifactId>mybatis-plus-annotation</artifactId>
      <version>3.1.2</version>
    </dependency>
    <dependency>
      <groupId>com.baomidou</groupId>
      <artifactId>mybatis-plus-extension</artifactId>
      <version>3.1.2</version>
    </dependency>

附官方文档:
https://baomidou.com/guide/faq.html

到此这篇关于使用mybatis-plus报错Invalid bound statement (not found)错误的文章就介绍到这了,更多相关mybatis-plus报错not found内容请搜索猪先飞以前的文章或继续浏览下面的相关文章希望大家以后多多支持猪先飞!

标签:[!--infotagslink--]

您可能感兴趣的文章: