<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
以上是我的SpringBoot使用的版本,在使用MyBatisPlus做数据持久化时出现了一下错误:
这个错误出现过好几次,每次都研究半天,因此把它给记下来,下次再出现就好解决了。
原因就是SpringBoot的版本和MyBatisPlus的版本冲突了(应该反过来说的)
使用一下MyBatisPlus依赖就能解决了
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>3.5.5</version>
</dependency>
一定注意使用了MyBatisPlus就不要再倒入MyBatis框架了