首页 > 其他分享> > 解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class
解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class
作者:互联网
一个项目引入了amqp以后报错,疑似包冲突,最后利用dependency analyzer终于解决了。
问题:
原依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
下一步:寻找有logback包的位置
排掉所有logback包:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
<exclusions>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</exclusion>
</exclusions>
</dependency>
再次启动:
成功解决。
标签:ch,qos,amqp,implementation,Logback,boot,spring,LoggerEither,logback 来源: https://blog.csdn.net/qq_41358574/article/details/122604414