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 依赖