puzhibing
2022-08-22 1421f8e9c308c4741cb396309035009393b5b036
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
package com.stylefeng.guns.rest.config.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;
 
    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;
    }
}