17 lines
459 B
Java
17 lines
459 B
Java
|
|
package com.yfd.platform.config;
|
|||
|
|
|
|||
|
|
import lombok.Data;
|
|||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||
|
|
import org.springframework.context.annotation.Configuration;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 文件空间相关配置,替换 @Value("${file-space.system}") 用法
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@Configuration
|
|||
|
|
@ConfigurationProperties(prefix = "file-space")
|
|||
|
|
public class FileSpaceProperties {
|
|||
|
|
|
|||
|
|
/** 基础目录,例如 D:/data/platform/ */
|
|||
|
|
private String system;
|
|||
|
|
}
|