程序出现如下错误:
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版本。
本文介绍了解决SLF4J日志框架未能加载的问题,提供了两种解决方案:一是确保Log4J的包已添加到编译路径中;二是引入slf4j-log4j12-1.5.11.jar进行转换。

被折叠的 条评论
为什么被折叠?



