import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class DomainConfig {
private static String baiDuDomain;
private static String tianDiTuDomain;
private static String gaoDeDomain;
private static String weiXinDomain;
public static String getBaiDuDomain() {
return baiDuDomain;
}
@Value("${domain.baidu-map}")
public void setBaiDuDomain(String baiDuDomain) {
DomainConfig.baiDuDomain = baiDuDomain;
}
public static String getTianDiTuDomain() {
return tianDiTuDomain;
}
@Value("${domain.tianditu-map}")
public void setTianDiTuDomain(String tianDiTuDomain) {
DomainConfig.tianDiTuDomain = tianDiTuDomain;
}
public static String getGaoDeDomain() {
return gaoDeDomain;
}
@Value("${domain.gaode-map}")
public void setGaoDeDomain(String gaoDeDomain) {
DomainConfig.gaoDeDomain = gaoDeDomain;
}
public static String getWeiXinDomain() {
return weiXinDomain;
}
@Value("${domain.weixin}")
public void setWeiXinDomain(String weiXinDomain) {
DomainConfig.weiXinDomain = weiXinDomain;
}
}