log配置

This commit is contained in:
litianxiang
2026-05-07 13:39:45 +08:00
parent 7f69eebedf
commit 9124256f01
3 changed files with 25 additions and 17 deletions

View File

@@ -100,6 +100,12 @@
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Spring Boot Logging显式引入确保 logback 正确初始化) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<!-- Knife4j Gateway Aggregation -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
@@ -145,6 +151,8 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 强制工作目录为模块根目录,确保 ./log 指向项目目录而非 Maven 安装目录 -->
<workingDirectory>${project.basedir}</workingDirectory>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>