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>

 

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM