rentaiming
2024-06-19 4d2d00c13c629e8dedac96f18387a12c6d3e4cb3
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
package com.ruoyi.order.util.properties;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * 项目相关配置
 *
 * @author fengshuonan
 * @date 2017年10月23日16:44:15
 */
@Configuration
@ConfigurationProperties(prefix = RestProperties.REST_PREFIX)
public class RestProperties {
 
    public static final String REST_PREFIX = "rest";
 
    private boolean authOpen = true;
 
    private boolean signOpen = true;
 
    private boolean swaggerOpen = true;
 
    private String fileUploadPath;
 
    public boolean isAuthOpen() {
        return authOpen;
    }
 
    public void setAuthOpen(boolean authOpen) {
        this.authOpen = authOpen;
    }
 
    public boolean isSignOpen() {
        return signOpen;
    }
 
    public void setSignOpen(boolean signOpen) {
        this.signOpen = signOpen;
    }
 
    public boolean isSwaggerOpen() {
        return swaggerOpen;
    }
 
    public void setSwaggerOpen(boolean swaggerOpen) {
        this.swaggerOpen = swaggerOpen;
    }
 
    public String getFileUploadPath() {
        return fileUploadPath;
    }
 
    public void setFileUploadPath(String fileUploadPath) {
        this.fileUploadPath = fileUploadPath;
    }
}