加入依赖
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
在main方法中发现还是报错
<scope>test</scope>
应该改为<scope>compile</scope>
在这还学习了一下
<scope>标签的使用
其中有五种值:compile、provided、runtime、test、system