问题:
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.
官方介绍:http://www.slf4j.org/codes.html#log4jDelegationLoop
This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.
解决办法:下载slf4j-nop.jar 或者slf4j-log4j12.jar其中的一个加入类路劲即可(其中版本要对应);

本文介绍了当遇到SLF4J无法加载StaticLoggerBinder类的问题时的解决方法。该问题通常发生在未找到适当的SLF4J绑定时。解决此问题只需在类路径中添加对应的SLF4J绑定文件,如slf4j-nop.jar或slf4j-log4j12.jar。
604

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



