码迷,mamicode.com
首页 > 其他好文 > 详细

SLF4J: Class path contains multiple SLF4J bindings.

时间:2021-01-26 11:57:22      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:artifact   selector   冲突   htm   org   osi   contains   static   pen   

maven 下载了一个新扩展 导致如下错误:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/QianXiao/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/QianXiao/.m2/repository/org/slf4j/slf4j-simple/1.7.30/slf4j-simple-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

  看着心糟;

其实 大意就是 slf4j 包冲突了 你的系统 有多个 slf4j 包

解决方法就是 去maven 里面找找看slf4j 多余的包 然后 把他 剔除就行了

<dependency>
            <groupId>com.baidu.aip</groupId>
            <artifactId>java-sdk</artifactId>
            <version>4.15.3</version>
            <exclusions>
                <!--不包含如下包-->
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-simple</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

  

SLF4J: Class path contains multiple SLF4J bindings.

标签:artifact   selector   冲突   htm   org   osi   contains   static   pen   

原文地址:https://www.cnblogs.com/qianxiaoPro/p/14320915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!