This article is connected: https://blog.csdn.net/u013314786/article/details/90412733
Project in the use of log4j2 do log processing, to exclude Spring Boot jar inside a lot of default dependence log bundle spring-boot-starter-logging
. A write dependence can also be excluded, but too cumbersome, has been tried, it just depend on one spring-boot-starter-logging
's shell, inside of all the things you can exclude. You can use the following way to achieve the desired effect.
<!--全局排除spring-boot-starter-logging内的所有依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency>
To exclude other global dependence, may also be used in this way.