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