@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface NacosConfigurationProperties
PropertyKeyConst| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
autoRefreshed
It indicates the properties of current doBind bean is auto-refreshed when Nacos configuration is changed.
|
boolean |
exceptionIfInvalid
Flag to indicate that an exception should be raised if a Validator is available and validation fails.
|
String |
groupId
Nacos Group ID.
|
boolean |
ignoreInvalidFields
Flag to indicate that when binding to this object invalid fields should be ignored.
|
boolean |
ignoreNestedProperties
Flag to indicate that when binding to this object fields with periods in their names should be ignored.
|
boolean |
ignoreUnknownFields
Flag to indicate that when binding to this object unknown fields should be ignored.
|
String |
prefix
config prefix name.
|
NacosProperties |
properties
The
NacosProperties attribute, If not specified, it will use global Nacos Properties. |
ConfigType |
type
config style.
|
boolean |
yaml
已过时。
|
public abstract String dataId
public abstract String prefix
""public abstract String groupId
Constants.DEFAULT_GROUP;@Deprecated public abstract boolean yaml
type() to set config type.falsepublic abstract ConfigType type
ConfigType.UNSETpublic abstract boolean autoRefreshed
falsepublic abstract boolean ignoreInvalidFields
public abstract boolean ignoreNestedProperties
public abstract boolean ignoreUnknownFields
public abstract boolean exceptionIfInvalid
public abstract NacosProperties properties
NacosProperties attribute, If not specified, it will use global Nacos Properties.NacosPropertiesCopyright © 2018–2021 Alibaba Group. All rights reserved.