【已解决】Correct the classpath of your application so that it contains compatible versions of the classe
一、问题描述
Correct the classpath of your application so that it contains compatible versions of the classes com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties$CoreConfiguration and org.apache.ibatis.session.Configuration
遇到这个问题,就是你的Pom依赖中的Mybatis Plus和Mybatis中存在版本冲突了
我本地的版本如下

二、解决方法
升级Mybatis版本或者Plus的版本,我是升级了下Mybatis的版本,升级成3.0.3就可以解决这个版本冲突的问题了
<!--mybatis-plus-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<version>${mybatis.plus.version}</version>
</dependency><!--mybatis-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
更多推荐
所有评论(0)