@ConfigurationProperties(value="configcenter") @Validated public class ConfigcenterProperties extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
APP_ID_PATTERN
应用id(默认为spring.application.name对应的配置)
|
static ConfigcenterProperties |
INSTANCE
实例
|
static String |
LISTEN_CONFIGS_ENABLE_KEY
是否开启监听配置变更事件(默认为开启)
|
| 构造器和说明 |
|---|
ConfigcenterProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCacheDirPath() |
String |
getPriorTo() |
int |
getRefreshPeriod() |
String |
getServerUrl() |
void |
setCacheDirPath(String cacheDirPath) |
void |
setPriorTo(String priorTo) |
void |
setRefreshPeriod(int refreshPeriod) |
void |
setServerUrl(String serverUrl) |
public static final String APP_ID_PATTERN
public static final String LISTEN_CONFIGS_ENABLE_KEY
public static final ConfigcenterProperties INSTANCE
public String getServerUrl()
public void setServerUrl(String serverUrl)
public String getCacheDirPath()
public void setCacheDirPath(String cacheDirPath)
public int getRefreshPeriod()
public void setRefreshPeriod(int refreshPeriod)
public String getPriorTo()
public void setPriorTo(String priorTo)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.