shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
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
package com.iplatform.base.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
 
@ConfigurationProperties(prefix = "iplatform.file")
public class FileProperties {
 
    public String getFileRoot() {
        return fileRoot;
    }
 
    public void setFileRoot(String fileRoot) {
        this.fileRoot = fileRoot;
    }
 
    /**
     * 调用远程上传文件,是否按照本地方式处理。
     * <pre>
     *     1)该选项为了适应没有FTP等服务的情况,特别是在开发过程,如果设置为:true 则调用远程上传方法后文件仍然保存在本地。
     *     2)如果生产环境存在合适的文件存储服务,则需要设置为:false
     * </pre>
     * @return
     * @date 2023-07-03
     */
    public boolean isRemoteAsLocal() {
        return remoteAsLocal;
    }
 
    public void setRemoteAsLocal(boolean remoteAsLocal) {
        this.remoteAsLocal = remoteAsLocal;
    }
 
    private boolean remoteAsLocal = true;
    private String fileRoot = null;
 
}