当我在类路径上指定这两个依赖项时,它将失败并显示:
“线程中的异常”主“java.lang.NoClassDefFoundError:org / slf4j / LoggerFactory”
有人知道吗?
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.10</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.10</version>
</dependency>