程序出现如下错误:
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版本。