admin管理员组

文章数量:1608851

在IDEA中启动JAVA程序之后,控制台中报以下错误信息

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j/codes.html#StaticLoggerBinder for further details.

解决方案:只需要在pom.xml中加入slf4j-simple 依赖即可解决(加了之后记得刷新一下maven)

<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
    <version>1.7.33</version>
    <scope>compile</scope>
</dependency>

然后再次运行程序,就没有这个错误提示了。

本文标签: 解决方法loadclassSlf4jfailed