failed to load class "org.sl4j.impl.StaticLoggerBinder"

(1)要确保有properties文件在你的主项目的src下面

(2)https://www.slf4j.org/codes.html(这个是配置相关文件)

(3)如果经过1、2步后问题依然存在,那么检查pom.xml文件中是否存在类似这样的

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.7.25</version>
   <scope>test</scope>
</dependency>

去掉<scope>test</scope>后问题解决

原文地址:https://www.cnblogs.com/wth21-1314/p/8393682.html