From 0665f06a288b8fa04078201b0216308edd7c3579 Mon Sep 17 00:00:00 2001 From: lbw Date: Mon, 27 Nov 2023 22:41:13 +0800 Subject: [PATCH] :recycle: Refactoring code. common-oss @NestedConfigurationProperty configproperty --- .../com/pig4cloud/pigx/common/file/core/FileProperties.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pigx-common/pigx-common-oss/src/main/java/com/pig4cloud/pigx/common/file/core/FileProperties.java b/pigx-common/pigx-common-oss/src/main/java/com/pig4cloud/pigx/common/file/core/FileProperties.java index 1b2b6768b..91d930433 100755 --- a/pigx-common/pigx-common-oss/src/main/java/com/pig4cloud/pigx/common/file/core/FileProperties.java +++ b/pigx-common/pigx-common-oss/src/main/java/com/pig4cloud/pigx/common/file/core/FileProperties.java @@ -21,6 +21,7 @@ import com.pig4cloud.pigx.common.file.local.LocalFileProperties; import com.pig4cloud.pigx.common.file.oss.OssProperties; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.context.properties.NestedConfigurationProperty; /** * 文件 配置信息 @@ -41,11 +42,13 @@ public class FileProperties { /** * 本地文件配置信息 */ + @NestedConfigurationProperty private LocalFileProperties local; /** * oss 文件配置信息 */ + @NestedConfigurationProperty private OssProperties oss; }