运行Maven项目时控制台出现如下图所示错误信息:
官网给的解决方法:
This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could 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-nop.jar 或 slf4j-simple.jar 或 slf4j-log4j12.jar 或 slf4j-jdk14.jar 或 logback-classic.jar 其中一个加入项目即可
注:只能添加一个
解决方案:
在项目中加入上述其中一个依赖: