Tag Archives: Failed to load class org.slf4j.impl.StaticLoggerBinder

[Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder

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.