我使用的slf4j-log4j12版本是1.7.30,使用时遇到了Failed to load class org.slf4j.impl.StaticLoggerBinder报错。在http://www.slf4j.org/codes.html#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.

按照原文说法,slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar这几个任意一个(且只能是一个)在class path即可,但是这就是报错时的状况。我的解决方法是把slf4j-simple.jar 1.7.30也加入到Maven依赖,这个报错就不再出现了。

Failed to load class org.slf4j.impl.StaticLoggerBinder 报错处理相关推荐

  1. 处理SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.报错

    今天在运行代码时,有个报错,但是也不影响其他内容正常输出 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder&quo ...

  2. SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". Spring Cloud 启动提示: SLF4J: ...

  3. 解决Failed to load class org.slf4j.impl.StaticLoggerBinder

    解决Failed to load class "org.slf4j.impl.StaticLoggerBinder" 解决办法,两步: 一.在编译路径中添加Log4J的包,比如我一 ...

  4. SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder

    以下为自己刚学习java遇到及排错过程 日志换成了 slf4j+logback,没看到本地有日志文件生成,调试时发现有错误提示(是在加载druid时出现的): SLF4J: Failed to loa ...

  5. SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder

    SLF4J:Failed to load class "org.slf4j.impl.StaticLoggerBinder" 解决方案: <dependency>< ...

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

    在IDEA中启动JAVA程序之后,控制台中报以下错误信息 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder&quo ...

  7. tomcat 启动显示日志级别,以及SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.错误

    把以前的一个老项目通过maven的方式搭了一下,tomcat启动时,打印信息特别多,当时判断日志显示级别应该是debug.但我配置与之前没有任何改变,所以问题应该出在pom.xml上,于是网上查找资料 ...

  8. 报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.

    报错 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to n ...

  9. slf4j报错:SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.Defaulting to no-operat有效解决办法

    运行maven程序时报如下错误: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: D ...

最新文章

  1. 系统升级到10.13之后cocoapods安装失败问题解决办法
  2. 三种字符编码:ASCII、Unicode和UTF-8
  3. 【小米3使用经验】小米3联通版 miui7.2.11稳定版刷机
  4. wpf treeView,避免横向滚动条自动偏移。 ContentHorizontalOffset
  5. 【vsftpd】嵌入式linux简易配置vsftpd服务
  6. 数据结构与算法 / 概念
  7. MetroGridHelper: A helpful debugging assistant for designers and developers alike
  8. 小熊的人生回忆(六)
  9. find_first_of()和 find_last_of()
  10. ❤️JavaWeb《超市订单管理系统—了解底层原理》(建议收藏)❤️
  11. linux空格转义,如何在bash循环列表中转义空格?
  12. 三层交换机与路由器对接上网
  13. 如何在 HTML5 页面中嵌入音频?如何在 HTML5 页面中嵌入视频?
  14. Html表格lt;tablegt;还是须要加入一些标签进行优化,能够加入标题lt;captiongt;和摘要lt;table summarygt;...
  15. 快手视频批量下载,一个脚本就够了,手把手教你批量下载快手高清视频。
  16. 机关干部的21条人际关系准则
  17. win10开机黑屏时间长或只有鼠标解决办法,亲测可用
  18. “15分钟核酸检测服务圈”怎样进行采样点选址
  19. 生于忧患,死于安乐。
  20. 光猫及二级路由器Openwrt均开启IPv6,满足双层网络内IPv6的获取

热门文章

  1. windows消息中的WM_DESTORY消息
  2. 日常一记(8)--拆分合并单元格并快速填充
  3. SSM常见的CRUD操作
  4. 卷积神经网络经典论文集合(深度学习分类篇)
  5. androidframework层面试题,有java基础学android
  6. bzoj4393[Usaco2015 Dec]Fruit Feast*
  7. Euraka 注册中自动退出无法注册解决办法
  8. 一个难倒三线城市所有开发人员,主要在数据库构架,您认为是我的方案行的通吗,还是他们没修炼?
  9. 大话设计模式之爱你一万年:第三章 创建型模式:工厂模式:我想让你坐在宝马里笑:3.工厂模式之简单工厂模式
  10. oaf java_OAF 多语言的实现