文章目录

  • 前言
  • 解决办法

前言

最近在研究如何用java更方便更简洁的去进行HTTP请求,过去我一直用的是jdk自带的HttpURLConnection ,国庆正好有时间研究研究其他大佬推荐的HttpClient。用IDEA运行代码发现这种报错。

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.
Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.

后面用的下面这种方法成功解决。

解决办法

pom.xml文件添加以下:

<dependencies><!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 --><dependency><groupId>org.apache.httpcomponents.client5</groupId><artifactId>httpclient5</artifactId><version>5.1.3</version></dependency><!-- https://mvnrepository.com/artifact/com.alibaba/fastjson --><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>2.0.14</version></dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-simple</artifactId><version>2.0.3</version><scope>compile</scope></dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-nop</artifactId><version>1.7.30</version></dependency></dependencies>

重点是后面的两个:

<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-simple</artifactId><version>2.0.3</version><scope>compile</scope></dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-nop</artifactId><version>1.7.30</version></dependency>

加上之后再运行就不告警提示了。


文章原创,欢迎转载,请注明文章出处: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.的解决方法.。百度和各类采集站皆不可信,搜索请谨慎鉴别。技术类文章一般都有时效性,本人习惯不定期对自己的博文进行修正和更新,因此请访问出处以查看本文的最新版本。

SLF4J: 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". Spring Cloud 启动提示: SLF4J: ...

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

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

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

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

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

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

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

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

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

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

  7. 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 ...

  8. idea springboot启动报SLF4J:Failed to load class “org.slf4j.impl.StaticLoggerBinder

    文章目录 首先声明一下,我用的 Intellij IDEA 2018.3 版本的,springboot的版本是 2.0.5.RELEASE 版本. 当我喜滋滋的编写完测试代码,点击 Debug 的时候 ...

  9. 报错:SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder“. SLF4J: Defaulting to no-operation

    报错: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 然后去 http://www.slf4j. ...

  10. maven报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“. SLF4J: Defaulting to no-ope

      今天在搭建maven项目时报错如下图: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF ...

最新文章

  1. 3D Detection 论文汇总
  2. Even Parity UVA - 11464 (枚举)
  3. LeetCode 334. 递增的三元子序列
  4. 转载 - Linux 磁盘挂载
  5. 第一序列任小粟的能力_末世废土文—《第一序列》:“这世间,已经不需要齐天大圣了。”...
  6. python模块是一个可共享的程序_python基础-模块
  7. Oracle常用数据字典表 Oracle常用数据字典表 查看当前用户的缺省表空间
  8. 连接ebay服务器时系统出现问题,客户端从服务器收到SOAP Fault:验证ebay失败
  9. Perl 模块 Getopt::Std 和 Getopt::Long
  10. 手游接入Facebook的那些坑
  11. 2018 年开源技术 10 大发展趋势
  12. Hybrid App
  13. 分享大二时用python写的银行管理系统(超简单版)内附源码
  14. 探索Perl的世界(更新到第十七章57集)
  15. cl.b8y.php,群晖如何重装系统
  16. python 计算字符串表达式_python计算数学表达式
  17. 禁用win10系统的Cortana小娜进程,笔记本散热风扇冷静了
  18. Java从入门到高级(第三天)
  19. BCH智能合约方案正式推出,我们的征途是星辰大海!
  20. Arduino Uno 火焰传感器实验

热门文章

  1. Android 美团批量打包新方案
  2. 【记录】微信网页授权错误码10003:redirect_uri域名与后台配置不一致
  3. Mac下brew神器
  4. 从商业到公益,公益人的两极心态
  5. Hololens开发系列目录
  6. Ubuntu18.04 新发现——鼠标滚轮快速切换界面!
  7. 淘宝新店怎么引入手淘流量?
  8. 【无人机】基于矢量场法时变未知风环境下无人机自适应路径跟踪研究(Matlab代码实现)
  9. oracle重做日志文件
  10. 画论08 裴孝源《贞观公私画史》