Failed to load class “org.slf4j.impl.StaticLoggerBinder“.

created at 12-16-2021 views: 3

Reason for error

The following error was thrown when implementing Shiro authentication today:

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.

reason

According to the error message thrown, it indicates that the jar package is missing.

solution

Use maven to add the following jar package

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.25</version>
</dependency>
created at:12-16-2021
edited at: 12-29-2021: