SLF4J: Class path contains multiple SLF4J bindings.
slf4j:在中找到绑定[jar:file:/c:/users/%d0%92%d0%b8%d0%ba%d1%82%d0%be%d1%80/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar/org/slf4j/impl/staticloggerbinder.class]slf4j:在中找到绑定[jar:file:/c:/users/%d0%92%d0%b8%d0%ba%d1%82%d0%be%d1%80/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.12.1/log4j-slf4j-impl-2.12.1.jar/org/slf4j/impl/staticloggerbinder.class]slf4j:请参阅http://www.slf4j.org/codes.html#multiple_bindings 为了解释。slf4j:实际绑定的类型为[ch.qos.logback.classic.util.contextselectorstaticbinder]
添加了排除,但错误不会消失。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>enter code here
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
暂无答案!
目前还没有任何答案,快来回答吧!