The version of slf4j-log4j12 I used is 1.7.30, and I encountered an error when using Failed to load class org.slf4j.impl.StaticLoggerBinder:
Failed to load class org.slf4j.impl.StaticLoggerBinder
This warning message 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.
According to the original statement, any one (and only one) of slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar can be in the class path, But this is the situation when the error is reported. My solution is to add slf4j-simple.jar 1.7.30 to the Maven dependency, and this error no longer appears.
Read More:
- [Solved] shiro Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
- [2022 New Solution] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- [Solved] Failed to introspect Class [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfigura
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- How to Fix log4j2 warning: warn unable to identify org.fusesource.jansi.WindowsAnsiOutputStream
- 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] com.alibaba.druid.filter.FilterManager : load filter error, filter not found : sl4j
- Java Running Error: Could not find or load main class
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] write javaBean error, fastjson version 1.2.76, class org.apache.flink.table.data.binary
- [Solved] org.springframework.context.ApplicationContextException: Failed to start bean ‘org.springframework.a
- [Solved] ERROR org.springframework.boot.SpringApplication – Application run failed org.yaml.snakeyaml.scanner
- serviceimpl inherits generic public impl startup error: ClassCastException (Mybatis-plus version Issue)
- BeanDefinitionStoreException: Failed to read candidate component class probably due to a new Java
- How to Solve Log4j 2.5 upgrade to 2.15 error
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- Reason: failed to determine a suitable driver class [Solved]
- [Solved] Failed to load resource: the server responded with a status of 404 ()