发生这个错误的原因是 项目中的其他jar包使用了SLF4J
而我们显式引用的SLF4J与其他包隐含引用的版本不同
解决方案是:
将显式引用的SLF4J dependancy 更改为
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.2</version>
</dependency>
参考: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”