Junit Sjf4j日志系统warning解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Xiblade/article/details/80584377

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

调试hdfs程序时出现这个情况,解决方法:添加maven关于sjf4j的依赖

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.5.6</version>
        <type>jar</type>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.5.6</version>
    </dependency>

相关链接:

https://www.jianshu.com/p/93bbe5f90b90

https://stackoverflow.com/questions/13473953/eclipse-failed-to-load-class-org-slf4j-impl-staticloggerbinder

猜你喜欢

转载自blog.csdn.net/Xiblade/article/details/80584377