failed to load class "org.slf4j.impl.StaticLoggerBinder
时间: 2023-08-18 13:14:02 浏览: 100
引用\[1\]:在maven打包的时候出现了"failed to load class "org.slf4j.impl.StaticLoggerBinder"的错误提示。\[1\]根据提示信息,这是由于没有找到适当的SLF4J绑定导致的。可以通过在类路径上添加slf4j-nop.jar、slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar或logback-classic.jar中的一个来解决这个问题。\[2\]例如,可以添加以下依赖项到pom.xml文件中来解决这个问题:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>compile</scope>
</dependency>
这样就可以解决"failed to load class "org.slf4j.impl.StaticLoggerBinder"的问题了。\[3\]
#### 引用[.reference_title]
- *1* *2* *3* [解决方案:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".](https://blog.csdn.net/qq_33996921/article/details/106053625)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文