当前位置: 代码迷 >> 综合 >> springBoot的项目下引用log4j2日志的pom文件
  详细解决方案

springBoot的项目下引用log4j2日志的pom文件

热度:3   发布时间:2024-02-12 01:29:30.0
<dependency> <!-- 引入log4j2依赖 --><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>

 

 

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId><exclusions><!-- 去掉springboot默认配置 --><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-logging</artifactId></exclusion></exclusions>
</dependency>