当前位置:网站首页>IDEA:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
IDEA:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
2022-07-22 18:13: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.
Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter.

原因
通过他提示进入官网查看
错误原因是编译的时候少了 slf4j-nop.jar slf4j-simple.jar, slf4j-log4j12.jar,slf4j-jdk14.jar或 logback-classic.jar中的其中一个jar包,加上去就行(只能是一个,多了就会有冲突)。
你们可能是运行的测试模块,或者没写scope
解决
加入这个包并编写<scope>compile</scope>
当依赖的scope为compile的时候,那么当前这个依赖的包,会在编译的时候被加⼊进来,并且在打包(mvn package)的时候也会被加⼊进来。
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>compile</scope>
</dependency>
边栏推荐
- 重置root密码
- 13. 编写程序,其中自定义一函数,用来判断一个整数是否为素数,主函数输入一个数,输出是否为素数。
- 配置IP地址
- 【基础7】——异常,捕获、自定义异常
- Dom4j parses XML files and processes data information from XML
- 手把手教你焊接CAD设计板底(初学者使用)图文教程
- 输入两个字符串 str1、str2,统计字符串 str2 出现在 str1 中的次数。
- Use of vim editor
- 机器学习开发应用步骤的理解
- Contains method to check whether the sequence contains an element
猜你喜欢

优化器(Optimizer)(SGD、Momentum、AdaGrad、RMSProp、Adam)

Configure the private chirpstack of lorawan in the LAN

scikit-learn——机器学习应用开发的步骤

A rough understanding of firewall

2020_ACL_A Transformer-based joint-encoding for Emotion Recognition and Sentiment Analysis

The simplest scull device driver

Introduction to 51 single chip microcomputer (dedicated to the most understandable article for beginners) update

Explain three networking modes under virtual machine in detail

ciscn_2019_n_1 ——两种解法

嵌入式系统移植【1】————导学
随机推荐
Prime palindromes
The difference between get request and post request
最简单的scull设备驱动
基于知识图谱的职位推荐系统的设计与实现
关于博主帅soserious的一些感想.
防火墙粗略了解
Information collection research report
Firewall Research Report
机器学习理论基础
Zstuacm registration results (complete with STL linked list)
User and group management
【基础2】——容器
Ia note 1
[SUCTF 2019]EasySQL
栈溢出基础练习题——4(写有64和32位两种攻击方式)
Implementation of IO multiplexing in UNIX using Select function to realize network socket server
Over fitting weight regularization and dropout regularization
记一个无显示屏无线连接树莓派,查找不到ip的办法
Asset mapping process
2019_ACL_Multimodal Transformer for Unaligned Multimodal Language Sequences