Failed to load class "org.slf4j.impl.StaticLoggerBinder"

时间:2021-01-02 00:39:50

在Eclipse 用Maven 创建了一个新项目(Quartz), 运行发现出错了

  • New Maven Project--> maven-archetype-quickstart

    and

  • New Maven Project--> Simple project without archetype selection

    result to

Failed to load class "org.slf4j.impl.StaticLoggerBinder"

 

解决办法:

在POM添加以下dependency, 然后强制更新Maven即可:

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.6</version>
</dependency>