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

官方的解决办法描述:

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.

       

所以说解决的办法:

在Maven工程的pom文件增加依赖

<dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-nop</artifactId>
       <version>1.7.2</version>
  </dependency>

 

  
posted @ 2020-03-13 17:14  大数据从业者FelixZh  阅读(1979)  评论(0编辑  收藏  举报