tj
2025-06-05 2d549a04870d1315868a7cf19952b64e8071e711
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.cloudroam.module.file;
 
import com.cloudroam.common.factory.YamlPropertySourceFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
 
/**
 * @author 
 * 文件配置类
 */
@Component
@ConfigurationProperties("lin.file")
@PropertySource(
        value = "classpath:com/cloudroam/extension/file/config.yml",
        encoding = "UTF-8", factory = YamlPropertySourceFactory.class)
public class FileProperties {
 
    private static final String[] DEFAULT_EMPTY_ARRAY = new String[0];
 
    private String storeDir = "/assets";
 
    private String singleLimit = "2MB";
 
    private Integer nums = 10;
 
    private String domain;
 
    private String[] exclude = DEFAULT_EMPTY_ARRAY;
 
    private String[] include = DEFAULT_EMPTY_ARRAY;
 
    /**
     * 文件存储路径
     */
    private String servePath = "assets/**";
 
    public String getServePath() {
        return servePath;
    }
 
    public void setServePath(String servePath) {
        this.servePath = servePath;
    }
 
    public String getStoreDir() {
        return storeDir;
    }
 
    public void setStoreDir(String storeDir) {
        this.storeDir = storeDir;
    }
 
    public String getSingleLimit() {
        return singleLimit;
    }
 
    public void setSingleLimit(String singleLimit) {
        this.singleLimit = singleLimit;
    }
 
    public Integer getNums() {
        return nums;
    }
 
    public void setNums(Integer nums) {
        this.nums = nums;
    }
 
    public String[] getExclude() {
        return exclude;
    }
 
    public void setExclude(String[] exclude) {
        this.exclude = exclude;
    }
 
    public String[] getInclude() {
        return include;
    }
 
    public void setInclude(String[] include) {
        this.include = include;
    }
 
    public String getDomain() {
        return domain;
    }
 
    public void setDomain(String domain) {
        this.domain = domain;
    }
}