heheng
5 天以前 3aacec366786f81ec475b8577d6c857faa427252
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.gkhy.exam.common.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Component
@ConfigurationProperties(prefix = "ssas")
public class SsasConfig {
    /**
     * 获取地址开关
     */
    private static boolean addressEnabled;
 
    public static boolean isAddressEnabled() {
        return addressEnabled;
    }
 
    public static void setAddressEnabled(boolean addressEnabled) {
        SsasConfig.addressEnabled = addressEnabled;
    }
 
 
}