项目引入mybatisplus后,启动报org/mybatis/logging/LoggerFactory这个错误。
原因
项目中引用的有org.mybatis.spring.boot的依赖,造成依赖冲突。
解决办法
如果是单工程,查找pom文件中是否直接引用的有org.mybatis.spring.boot的依赖
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
</dependency>
如果则删除重新编译即可。
如果是多模块的项目,自己pom中没有明确指定org.mybatis.spring.boot的依赖,那么就需要查看是否是引用其他项目模块时