有几种方法,参考这个:java - How do I fix "SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"." - Stack Overflow文章来源:https://www.toymoban.com/news/detail-676755.html
我用这个管用--Also,you can try adding these SLF4J maven dependencies into your pom and let me know if this works:文章来源地址https://www.toymoban.com/news/detail-676755.html
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.13.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.13.3</version>
</dependency>
到了这里,关于How do I fix “SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.“的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!