Failed to load class "org.slf4j.impl.StaticLoggerBinder"
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.
在pom.xml中添加以下依赖即可
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
</dependency>
最新mave包信息
本文解决了一个常见的SLF4J日志框架加载失败的问题,提供了详细的解决方案,包括在Maven项目中添加正确的slf4j-simple依赖,以确保日志功能正常运行。
2万+

被折叠的 条评论
为什么被折叠?



