码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-03-09 18:04:00      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:方法   cti   htm   version   nbsp   .com   tor   stat   artifact   

经常会提示日志类找不到,虽然无关紧要,但是看起来确实别扭。

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.

解决方法:加入相应的依赖包。

    <!-- https://mvnrepository.com/artifact/log4j/log4j -->
    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
    </dependency>
    <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-nop -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-nop</artifactId>
        <version>1.7.25</version>
    </dependency>

 

 

 

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

标签:方法   cti   htm   version   nbsp   .com   tor   stat   artifact   

原文地址:https://www.cnblogs.com/30go/p/8534835.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!