Error content:
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Solution:
1) First, look at the version of sl4j API in your project (for example, mine is 1.7.25)
2) Then in http://mvnrepository.com/ Search slf4j-log4j12 and slf4j log4j12 binding will appear. Click to enter and there will be many versions of slf4j-log4j12. We click slf4j-log4j12 of version 1.7.25 to enter the details page and view the dependent log4j
Click: 1.2.27
Perfect problem solving:
Pom.xml installation dependency of Maven project:
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
Similar Posts:
- [Solved] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
- SLF4J: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path
- Using Maven helper to resolve Maven plug-in conflicts
- [Solved] IDEA springboot Startup Error: SLF4J:Failed to load class “org.slf4j.impl.StaticLoggerBinder”
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism
- [Solved] Jsonobject has no from object, idea has no Maven dependency, jsonobject Maven dependency package
- SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
- Springboot always reports an error when importing JSP dependencies
- Unregistering JMX-exposed beans on shutdown Solution
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses