@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Repeatable(value=NacosPropertySources.class) public @interface NacosPropertySource
PropertySourcePropertySource,
PropertySource| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AFTER_ATTRIBUTE_NAME
The attribute name of
after() |
static String |
AUTO_REFRESHED_ATTRIBUTE_NAME
The attribute name of
autoRefreshed() |
static String |
BEFORE_ATTRIBUTE_NAME
The attribute name of
before() |
static String |
CONFIG_TYPE_ATTRIBUTE_NAME
The attribute name of
type() ()} |
static String |
DATA_ID_ATTRIBUTE_NAME
The attribute name of
dataId() |
static String |
FIRST_ATTRIBUTE_NAME
The attribute name of
first() |
static String |
GROUP_ID_ATTRIBUTE_NAME
The attribute name of
groupId() |
static String |
NAME_ATTRIBUTE_NAME
The attribute name of
name() |
static String |
PROPERTIES_ATTRIBUTE_NAME
The attribute name of
properties() |
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
after
The relative order after specified
PropertySource
If not specified , current Nacos PropertySource will be added last. |
boolean |
autoRefreshed
It indicates the property source is auto-refreshed when Nacos configuration is
changed.
|
String |
before
The relative order before specified
PropertySource
If not specified , current Nacos PropertySource will be added last. |
boolean |
first
|
String |
groupId
Nacos Group ID
|
String |
name
The name of Nacos
PropertySource If absent , the default name will be built
from dataId, groupid and properties by
NacosUtils.buildDefaultPropertySourceName(String, String, Map) method |
com.alibaba.nacos.api.annotation.NacosProperties |
properties
The
NacosProperties attribute, If not specified, it will use
global Nacos Properties. |
com.alibaba.nacos.api.config.ConfigType |
type
The type of config
|
public static final String AUTO_REFRESHED_ATTRIBUTE_NAME
autoRefreshed()public static final String PROPERTIES_ATTRIBUTE_NAME
properties()public abstract String dataId
public abstract String name
PropertySource If absent , the default name will be built
from dataId, groupid and properties by
NacosUtils.buildDefaultPropertySourceName(String, String, Map) methodpublic abstract String groupId
Constants.DEFAULT_GROUP;public abstract boolean autoRefreshed
falsepublic abstract com.alibaba.nacos.api.config.ConfigType type
public abstract com.alibaba.nacos.api.annotation.NacosProperties properties
NacosProperties attribute, If not specified, it will use
global Nacos Properties.NacosPropertiesEnableNacos.globalProperties()Copyright © 2021. All rights reserved.