解决错误: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

来源:互联网 发布:wampserver配置多域名 编辑:程序博客网 时间:2024/06/06 22:55

程序出现如下错误:

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.




缺少相关的jar包

1、在编译路径中添加Log4J的包,比如log4j-1.2.8.jar; 
2、添加一个叫做slf4j-log4j12-1.5.11.jar的包进行转换,注意log4j12,可能对应的是log4j 1.2版本。 
阅读全文
0 0
原创粉丝点击