今天编译时出现了一个错误提示,无法load StaticLoggerBinder, 就使用了默认的实现
[INFO] --- spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage) @ nettyServer ---
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
slf4j官网说是不知道使用哪个slf4j,声明一下就好了,但是我在依赖中添加了声明也没用
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.25</version>
</dependency>
知道怎么修复这个问题了,插件的依赖要写在插件里面