注释类型 NacosConfigurationProperties
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface NacosConfigurationPropertiesAn annotation for Nacos configuration Properties for binding POJO as Properties Object.- 从以下版本开始:
- 0.2.0
- 作者:
- Mercy
- 另请参阅:
PropertyKeyConst
-
-
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 java.lang.StringdataIdNacos Data ID.
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 booleanautoRefreshedIt indicates the properties of current doBind bean is auto-refreshed when Nacos configuration is changed.booleanexceptionIfInvalidFlag to indicate that an exception should be raised if a Validator is available and validation fails.java.lang.StringgroupIdNacos Group ID.booleanignoreInvalidFieldsFlag to indicate that when binding to this object invalid fields should be ignored.booleanignoreNestedPropertiesFlag to indicate that when binding to this object fields with periods in their names should be ignored.booleanignoreUnknownFieldsFlag to indicate that when binding to this object unknown fields should be ignored.java.lang.Stringprefixconfig prefix name.NacosPropertiespropertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.ConfigTypetypeconfig style.
-
-
-
-
groupId
java.lang.String groupId
Nacos Group ID.- 返回:
- default value
Constants.DEFAULT_GROUP;
- 默认值:
- "DEFAULT_GROUP"
-
-
-
type
ConfigType type
config style.- 返回:
- default value is
ConfigType.UNSET
- 默认值:
- com.alibaba.nacos.api.config.ConfigType.UNSET
-
-
-
ignoreInvalidFields
boolean ignoreInvalidFields
Flag 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
-
-
-
exceptionIfInvalid
boolean exceptionIfInvalid
Flag 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 properties
TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- 返回:
- the default value is
NacosProperties
- 默认值:
- @com.alibaba.nacos.api.annotation.NacosProperties
-
-