SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

来源:互联网 发布:香港域名注册處 编辑:程序博客网 时间:2024/06/05 10:52

问题

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.

解决

This warning message 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.

所以只要引入上面的任意一个且只能一个jar即可,我是在gradle中加了slf4j-simple.jar 依赖之后,就可以了。

参考:http://stackoverflow.com/questions/7421612/slf4j-failed-to-load-class-org-slf4j-impl-staticloggerbinder

0 0
原创粉丝点击