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; } }