springboot排除log4j
作者:互联网
因为最近爆出的log4j2漏洞,发现项目里有log4j-to-slf4j2.14和log4j-api2.14,而我使用的是logback
所以可以直接将log4j2排除掉。
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> </exclusion> <exclusion> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-to-slf4j</artifactId> </exclusion> </exclusions> </dependency>
标签:logging,springboot,boot,排除,apache,org,log4j2,log4j 来源: https://www.cnblogs.com/anenyang/p/16540772.html