From 4ed36c5559b20e320cb3894d0ec9e35615e83e01 Mon Sep 17 00:00:00 2001 From: PIGCLOUD Date: Fri, 7 Aug 2026 10:10:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(pigx-common-log):=20=E4=BF=AE=E5=A4=8DNacos?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E6=AD=BB=E5=BE=AA=E7=8E=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 `excludeFields` 字段的 `@Value` 注解注入,改为直接初始化默认值列表,避免动态配置刷新引发循环依赖 --- .../pig4cloud/pigx/common/log/config/PigxLogProperties.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/config/PigxLogProperties.java b/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/config/PigxLogProperties.java index 57a2235dc..f7a9e98e4 100644 --- a/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/config/PigxLogProperties.java +++ b/pigx-common/pigx-common-log/src/main/java/com/pig4cloud/pigx/common/log/config/PigxLogProperties.java @@ -18,7 +18,6 @@ package com.pig4cloud.pigx.common.log.config; import lombok.Getter; import lombok.Setter; -import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import java.util.List; @@ -48,8 +47,8 @@ public class PigxLogProperties { /** * 放行字段,password,mobile,idcard,phone */ - @Value("${pigx.log.exclude-fields:password,mobile,idcard,phone,accessSecret,tokenId,sign}") - private List excludeFields; + private List excludeFields = List.of("password", "mobile", "idcard", "phone", "accessSecret", "tokenId", + "sign"); /** * 请求报文最大存储长度