SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder
Problem introduction:
Problem Analysis:
According to the error message, we can know that the cause of the error is “failed to load the class file org.slf4j.impl.StaticLoggerBinder”, and the error mainly lies in the jar package of slf4j.
Official website explanation:
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.
Solution:
Add a dependency configuration of one of the above package files to the pom file of the Maven project, as follows:
<dependency span>>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.2</version>
</dependency>
Over!!!
Read More:
- [Solved] shiro Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
- [Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- How to Fix log4j2 warning: warn unable to identify org.fusesource.jansi.WindowsAnsiOutputStream
- How to Solve Log4j 2.5 upgrade to 2.15 error
- [Solved] com.alibaba.druid.filter.FilterManager : load filter error, filter not found : sl4j
- [Solved] Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfigura
- Springboot2.6X version integrate knife4j error [How to Solve]
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- log4j:WARN Error during default initialization [How to Solve]
- [Solved] openstack4j Startup Error: java.net.UnknownHostException: controller
- Split log by date in log4j2 of spring boot
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- Jmeter Error: ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
- Java error: unable to find or load main class (package name in source file)
- DevTools failed to load SourceMap Could not load content [Solved]
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- Java Running Error: Could not find or load main class