报错:SLF4J: 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.
截图:
原因
slf4j和log4j不兼容导致
解决
查看slf4j-api的版本,我这里是
1.7.30
进入
https://mvnrepository.com/
,搜索slf4j-log4j12
,点击SLF4J LOG4J 12 Binding Relocated
,找到你的slf4j-api的版本复制相关依赖
注意:要注释掉<scope>test</scope>
我的依赖
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 --><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-log4j12</artifactId><version>1.7.30</version><!-- test:作用域在test目錄下 -->
<!-- <scope>test</scope>--></dependency><!-- https://mvnrepository.com/artifact/log4j/log4j --><dependency><groupId>log4j</groupId><artifactId>log4j</artifactId><version>1.2.17</version></dependency><!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>1.7.30</version></dependency>
报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.相关推荐
- 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 ...
- 报错: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. ...
- 处理SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.报错
今天在运行代码时,有个报错,但是也不影响其他内容正常输出 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder&quo ...
- shiro报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
shiro报错 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 搜索后找到原因: 日志含义加载or ...
- 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 ...
- idea springboot启动报SLF4J:Failed to load class “org.slf4j.impl.StaticLoggerBinder
文章目录 首先声明一下,我用的 Intellij IDEA 2018.3 版本的,springboot的版本是 2.0.5.RELEASE 版本. 当我喜滋滋的编写完测试代码,点击 Debug 的时候 ...
- 接入谷歌AdSense后浏览器控制台报错:Failed to load resource: the server responded with a status of 403的原因及解决办法、
本篇文章主要讲解,接入谷歌AdSense后浏览器控制台报错:Failed to load resource: the server responded with a status of 403 ads ...
- HTML页面跨域请求图片资源报错:Failed to load resource: the server responded with a status of 403 (Forbidden)
笔者近日刚刚完成了一个Spring boot项目,首页 index.html 页面元素 <img> 引用了第三方服务器的图片链接,在本地测试环境输入 http://localhost 或者 ...
- 控制台出现报错DevTools failed to load source map: Could not load content for chrome-extension://的原因及解决方案
控制台出现报错DevTools failed to load source map: Could not load content for chrome-extension://的原因及解决方案 在调 ...
最新文章
- 《庆余年》里范闲背了个诗,把这个GitHub项目带火了
- 第一章计算机基础知识第一节,第一章 计算机基础知识 第一节
- 位置相关属性offset(),position(),scrollTop()等
- java nio 文件_Java nio 的文件处理
- 正式发布python版本的年份_飞书首次举办产品发布会,新版本“”正式发布
- 关于'java' 不是内部或外部命令,也不是可运行的程序 或批处理文件 和 错误: 找不到或无法加载主类 helloworld的问题...
- gensim提取一个句子的关键词_聊一聊 NLPer 如何做关键词抽取
- UbuntuHelp:AptGet/Howto/zh
- less 使用小结!笔记!
- sql 备份 语句(全)
- php格式怎么转换为pdf,PHP如何将将word文件转为pdf
- 中国城市统计年鉴2021 面板数据
- 中国可用的 BT Tracker 服务器列表,每24小时自动更新,去重,自动检测可用性
- 代码管理工具——SVN
- java swfupload 302_SWFUpload 302
- 给windows7系统盘瘦身
- pikachu XXE (XML外部实体注入)(皮卡丘漏洞平台通关系列)
- layui省市县三级联动,如何设置select选择时,值为省市县code码
- mooc翁凯C语言习题第七周(7-2)鞍点
- openlayers离线文档_openlayers学习