forked from kidgrow-microservices-platform

克 刘
2021-03-01 f57ee285f308f1924b79a159d2d0118e19e620e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.kidgrow.filecenter.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 *
 * @Description: <br>
 * @Project: <br>
 * @CreateDate: Created in 2020/2/18 11:03 <br>
 * @Author: <a href="4345453@kidgrow.com">liuke</a>
 */
@Data
@ConfigurationProperties(prefix = "kidgrow.file-server")
@RefreshScope
public class FileServerProperties {
    /**
     * 为以下3个值,指定不同的自动化配置
     * qiniu:七牛oss
     * aliyun:阿里云oss
     * fastdfs:本地部署的fastDFS
     */
    private String type;
 
    /**
     * oss配置
     */
    OssProperties oss = new OssProperties();
 
    /**
     * fastDFS配置
     */
    FdfsProperties fdfs = new FdfsProperties();
 
 
 
}