Loading

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.解决方法

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

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中加入slf4j-simple 依赖即可解决(加了之后记得刷新一下maven)

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

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

posted @   Roc-xb  阅读(76)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现

易微帮源码


易微帮官网

点击右上角即可分享
微信分享提示