SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found ... Junit 测试报错

SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found …

导入一个 jar包后,就开始报红

解决方法


<dependency>
            <groupId>groupiD</groupId>
            <artifactId>java-sdk</artifactId>

            <exclusions>
                <exclusion>
                    <artifactId>log4j-api</artifactId>
                    <groupId>org.apache.logging.log4j</groupId>

                </exclusion>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>logback-classic</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-simple</artifactId>
                </exclusion>
            </exclusions>

        </dependency>

排除这个jar包依赖的 slf4j 依赖

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 终极编程指南 设计师:CSDN官方博客 返回首页