@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Import(value=NacosConfigBeanDefinitionRegistrar.class) public @interface EnableNacosConfig
NacosBeanDefinitionRegistrar| Modifier and Type | Fields and Description |
|---|---|
static String |
ACCESS_KEY_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.access-key:${nacos.access-key:}}" |
static String |
CLUSTER_NAME_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.cluster-name:${nacos.cluster-name:}}" |
static String |
CONFIG_LONG_POLL_TIMEOUT_PLACEHOLDER
The placeholder of
configLongPollTimeout, the value is "${nacos.configLongPollTimeout:}" |
static String |
CONFIG_PREFIX
The prefix of property name of Nacos Config
|
static String |
CONFIG_RETRY_TIME_PLACEHOLDER
The placeholder of
configRetryTime, the
value is "${nacos.configRetryTime:}" |
static String |
CONTEXT_PATH_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.context-path:${nacos.context-path:}}" |
static String |
ENCODE_PLACEHOLDER
The placeholder of
encode, the value is
"${nacos.config.encode:${nacos.encode:UTF-8}}" |
static String |
ENDPOINT_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.endpoint:${nacos.endpoint:}}" |
static String |
MAX_RETRY_PLACEHOLDER
The placeholder of
maxRetry, the value is
"${nacos.maxRetry:}" |
static String |
NAMESPACE_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.namespace:${nacos.namespace:}}" |
static String |
PASSWORD_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.password:${nacos.password:}}" |
static String |
SECRET_KEY_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.secret-key:${nacos.secret-key:}}" |
static String |
SERVER_ADDR_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.server-addr:${nacos.server-addr:}}" |
static String |
USERNAME_PLACEHOLDER
The placeholder of endpoint, the value is
"${nacos.config.username:${nacos.username:}}" |
| Modifier and Type | Optional Element and Description |
|---|---|
com.alibaba.nacos.api.annotation.NacosProperties |
globalProperties
Global
Nacos Properties |
public static final String CONFIG_PREFIX
public static final String ENDPOINT_PLACEHOLDER
"${nacos.config.endpoint:${nacos.endpoint:}}"public static final String NAMESPACE_PLACEHOLDER
"${nacos.config.namespace:${nacos.namespace:}}"public static final String ACCESS_KEY_PLACEHOLDER
"${nacos.config.access-key:${nacos.access-key:}}"public static final String SECRET_KEY_PLACEHOLDER
"${nacos.config.secret-key:${nacos.secret-key:}}"public static final String SERVER_ADDR_PLACEHOLDER
"${nacos.config.server-addr:${nacos.server-addr:}}"public static final String CONTEXT_PATH_PLACEHOLDER
"${nacos.config.context-path:${nacos.context-path:}}"public static final String CLUSTER_NAME_PLACEHOLDER
"${nacos.config.cluster-name:${nacos.cluster-name:}}"public static final String ENCODE_PLACEHOLDER
encode, the value is
"${nacos.config.encode:${nacos.encode:UTF-8}}"public static final String CONFIG_LONG_POLL_TIMEOUT_PLACEHOLDER
configLongPollTimeout, the value is "${nacos.configLongPollTimeout:}"public static final String CONFIG_RETRY_TIME_PLACEHOLDER
configRetryTime, the
value is "${nacos.configRetryTime:}"public static final String MAX_RETRY_PLACEHOLDER
maxRetry, the value is
"${nacos.maxRetry:}"public static final String USERNAME_PLACEHOLDER
"${nacos.config.username:${nacos.username:}}"public static final String PASSWORD_PLACEHOLDER
"${nacos.config.password:${nacos.password:}}"public abstract com.alibaba.nacos.api.annotation.NacosProperties globalProperties
Nacos PropertiesNacosInjected.properties(),
NacosConfigListener.properties(),
NacosConfigurationProperties.properties()Copyright © 2020. All rights reserved.