fix(pigx-common-log): 修复Nacos配置修改导致数据源死循环的问题

- 移除 `excludeFields` 字段的 `@Value` 注解注入,改为直接初始化默认值列表,避免动态配置刷新引发循环依赖
This commit is contained in:
PIGCLOUD committed 2026-08-07 10:12:24 +08:00
1 parent c3b336aad4
commit 4ed36c5559
1 file changed
+2 -3
@@ -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<String> excludeFields;
private List<String> excludeFields = List.of("password", "mobile", "idcard", "phone", "accessSecret", "tokenId",
"sign");
/**
* 请求报文最大存储长度