Failed to load class ‘org.slf4j.impl.StaticLoggerBinder’
强迫症解决SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
今天新建一个maven项目写了一个测试文件,跑起来之后Tests passed
, 但是控制台却打印了下面这样的提示
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". |
然后我点进那个网址
Failed to load class “org.slf4j.impl.StaticMDCBinder”
This error indicates that appropriate SLF4J binding could not 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-jar
包,所以我们在maven
配置文件里导入一个jar包就行了
<dependency> |
- 本文作者: Naskete
- 本文链接: https://Naskete.github.io/2021/03/13/essay/Failed-to-load-class-org-slf4j-impl-StaticLoggerBinder/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!