错误提示:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Seehttp://www.slf4j.org/codes.html#StaticLoggerBinderfor further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
错误原因:
没有找到合适的绑定SLF4J,需要添加所列举的包中的某一个
slf4j-nop.jar
slf4j-simple.jar
slf4j-log4j12.jar
slf4j-jdk14.jar
logback-classic.jar
若使用Log4j,则jar应包括如下3个jar
slf4j-api-???.jar
slf4j-log4j12-???.jar
log4j-1.2.?.jar