使用
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
在所有引用springboot的地方排除
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
目前没有发现可以在一个pom中一次性排除所有depengcy中引用的某个jar,只能这样一个一个的排除。
不排除会出现:
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelecto 的提示,log4j会与logback冲突
网友评论