mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 12:39:05 +08:00
♻️ Refactoring code. common-oss @NestedConfigurationProperty configproperty
This commit is contained in:
1 parent
d1529c5fba
commit
8e6e6166b5
1 file changed
+3
+3
@@ -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;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user