SLF4J: Defaulting to no-operation (NOP) logger implementation 解决办法
来源:互联网 发布:php前端 java后端架构 编辑:程序博客网 时间:2024/06/03 04:00
错误提示
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.
原因: log4j 和sl4j的版本不匹配,或是缺少jar包
解决办法: 在pom文件里将相关的jar包换成以下这一组
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
<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.25</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-nop -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
- SLF4J: Defaulting to no-operation (NOP) logger implementation 解决办法
- quartz报错:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-op
- Spring +slf4j logger
- org.slf4j.Logger找不到
- No configuration found for the specified action: '/sum' in namespace: ''.Form action defaulting to '
- No configuration found for the specified action: '' in namespace: ''. Form action defaulting to 'act
- keystone中Vertify operation出现:No handlers could be found for logger "keystoneclient.httpclient"的问题
- 使用 slf4j + Java.util.logger
- 使用 slf4j.Logger 打印日志
- 浅谈slf4j,logger中的{}功能
- org.slf4j.Logger报错
- No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's litera
- NOP
- Failed to load class "org.slf4j.impl.StaticLoggerBinder"异常解决办法
- UnsatisfiedLinkError: No implementation found
- java.lang.NoClassDefFoundError: org/slf4j/Logger
- Slf4j Logger 的封装——Log
- java Logger类和Apache slf4j
- SSO(Single Sign on)单点登录系统
- Python学习--搭建Eclipse的Python开发环境1
- XML学习02-XML语法
- VBA学习7_VBA自定义工作表函数不能完成的任务
- FPGA学习心得
- SLF4J: Defaulting to no-operation (NOP) logger implementation 解决办法
- 20171023
- Find The Multiple
- opencv之7.5提取联通区域的轮廓
- (二十六)Meterail Design
- 关于阿里云不同vpc下的内网互通
- [LeetCode] Jump Game
- Docker入门教程 Part 2 容器操作
- 日期类的实现 class Date()