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

image

能夠看出,報出錯誤的地方主要是slf4j的jar包,而故障碼中「Failed to load class ’org.slf4j.impl.StaticLoggerBinder‘」的意思則是「加載類文件org.slf4j.impl.StaticLoggerBinder時失敗」。app

而官網上刊登的解決辦法是:翻譯

        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.blog

翻譯過來以下所示:內存

這個錯誤是當org.slf4j.impl報道。StaticLoggerBinder類不能被加載到內存中。發生這種狀況時,沒法找到合適的SLF4J綁定類路徑。slf4j-nop.jar放置一個(且只有一個), slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar 或 logback-classic.jar 的類路徑應該解決這個問題。ci

相關文章
相關標籤/搜索