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

Posted 慧妃不美

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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>后问题解决

 

以上是关于failed to load class "org.sl4j.impl.StaticLoggerBinder"的主要内容,如果未能解决你的问题,请参考以下文章

Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

Unable to load configuration.

Failed to load class "org.slf4j.impl.StaticLoggerBinder".

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

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