解決 程序報 SLF4J: Failed to load class "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.

 

 

下載相應的slf4j的jar包,在slf4j官網下載,

以1.7.21版本為例。

一般只是在程序中引入了slf4j-api-1.7.21.jar文件。

 

解決方式如下:

  解壓下載的zip包中,拷貝 slf4j-nop-1.7.21.jar 文件到項目中,再build path, 就解決了。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM