解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class

一个项目引入了amqp以后报错,疑似包冲突,最后利用dependency analyzer终于解决了。

问题:
解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class

原依赖:

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-amqp</artifactId>
        </dependency>

下一步:寻找有logback包的位置
解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class
排掉所有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>

再次启动:
解决LoggerFactory is not a Logback LoggerEither remove Logback or the competing implementation (class
成功解决。

上一篇:服务访问质量(Qos)


下一篇:【HCIE 论述题】QoS