SLF4J:加载类“org.slf4j.impl.StaticLoggerBinder”失败
遇到了这个问题记录一下,希望对你也有所帮助
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包
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.25</version>
</dependency>
注意,如是在如果加了scope,需要注意器范围,如是test那么main方法中将不可用
如果都解决不了问题,可以看看是不是你的Java环境有问题,比如Jdk7对应tomcat7,Jdk8对应tomcat8等等。