Annotation Interface NacosConfigurationProperties
An annotation for Nacos configuration Properties for binding POJO as Properties Object.
- 从以下版本开始:
- 0.2.0
- 作者:
- Mercy
- 另请参阅:
PropertyKeyConst
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明booleanIt indicates the properties of current doBind bean is auto-refreshed when Nacos configuration is changed.booleanFlag to indicate that an exception should be raised if a Validator is available and validation fails.Nacos Group ID.booleanFlag to indicate that when binding to this object invalid fields should be ignored.booleanFlag to indicate that when binding to this object fields with periods in their names should be ignored.booleanFlag to indicate that when binding to this object unknown fields should be ignored.config prefix name.TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.config style.boolean已过时。
-
元素详细资料
-
dataId
String dataIdNacos Data ID.- 返回:
- required value.
-
-
-
prefix
String prefixconfig prefix name.- 返回:
- default value is
""
- 默认值:
- ""
-
groupId
String groupIdNacos Group ID.- 返回:
- default value
Constants.DEFAULT_GROUP;
- 默认值:
- "DEFAULT_GROUP"
-
yaml
已过时。set config type is yaml this method is deprecated, we support you usetype()to set config type.- 返回:
- default value
false
- 默认值:
- false
-
type
ConfigType typeconfig style.- 返回:
- default value is
ConfigType.UNSET
- 默认值:
- UNSET
-
autoRefreshed
boolean autoRefreshedIt indicates the properties of current doBind bean is auto-refreshed when Nacos configuration is changed.- 返回:
- default value is
false
- 默认值:
- false
-
ignoreInvalidFields
boolean ignoreInvalidFieldsFlag to indicate that when binding to this object invalid fields should be ignored. Invalid means invalid according to the binder that is used, and usually this means fields of the wrong type (or that cannot be coerced into the correct type).- 返回:
- the flag value (default false)
- 默认值:
- false
-
ignoreNestedProperties
boolean ignoreNestedPropertiesFlag to indicate that when binding to this object fields with periods in their names should be ignored.- 返回:
- the flag value (default false)
- 默认值:
- false
-
ignoreUnknownFields
boolean ignoreUnknownFieldsFlag to indicate that when binding to this object unknown fields should be ignored. An unknown field could be a sign of a mistake in the Properties.- 返回:
- the flag value (default true)
- 默认值:
- true
-
exceptionIfInvalid
boolean exceptionIfInvalidFlag to indicate that an exception should be raised if a Validator is available and validation fails. If it is set to false, validation errors will be swallowed. They will be logged, but not propagated to the caller.- 返回:
- the flag value (default true)
- 默认值:
- true
-
properties
NacosProperties propertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- 返回:
- the default value is
NacosProperties
- 默认值:
- @com.alibaba.nacos.api.annotation.NacosProperties
-