引入mybatis-plus后出现java.lang.ClassNotFoundException: org.mybatis.logging.LoggerFactory

问题说明,依赖冲突,循环依赖
方法一:
(mybatis-plus版本为3.1.2)
可能是系统中的mybatis丶mybatis-spring版本与mybatis-plus版本差距太大,导致引入mybatis-plus后有依赖冲突,未升级前mybatis为3.4.6,mybatis-spring为1.3.2。升级版本后系统可正常启动。
(ps:如果系统中没有调用mybatis丶mybatis-spring下的东西,那么之间删除即可)
在这里插入图片描述

			<dependency>
                <groupId>org.mybatis</groupId>
                <artifactId>mybatis</artifactId>
                <version>3.5.4</version>
            </dependency>
            <dependency>
                <groupId>org.mybatis</groupId>
                <artifactId>mybatis-spring</artifactId>
                <version>2.0.4</version>
		 </dependency>

方法二:以下两个依赖会冲突,有了 mybatis-plus-boot-starter,就不需要 spring 自己的 mybatis-spring-boot-starter 了。

<!--删除即可-->
<dependency>
        <groupId>org.mybatis.spring.boot</groupId>
        <artifactId>mybatis-spring-boot-starter</artifactId>
    </dependency>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值