maven坐标导入jar包时剔除不需要的内容
- 问题描述
- 解决方案
问题描述
maven坐标导入jar包时剔除不需要的内容
解决方案
Spring Boot 默认使用 Logback,需在 pom.xml 中排除其依赖:
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId><exclusions><!-- 排除 Logback --><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-logging</artifactId></exclusion></exclusions>
</dependency>