Annotation Type NacosConfigurationProperties
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface NacosConfigurationProperties
An annotation for Nacos configuration Properties for binding POJO as Properties Object.- Since:
- 0.2.0
- Author:
- Mercy
- See Also:
PropertyKeyConst
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description 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.StringgroupIdNacos Group IDbooleanignoreInvalidFieldsFlag 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.NacosPropertiespropertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.
-
-
-
Element Detail
-
dataId
String dataId
Nacos Data ID- Returns:
- required value.
-
-
-
groupId
String groupId
Nacos Group ID- Returns:
- default value
Constants.DEFAULT_GROUP;
- Default:
- "DEFAULT_GROUP"
-
-
-
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).- Returns:
- the flag value (default false)
- Default:
- 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.- Returns:
- the flag value (default true)
- Default:
- true
-
-
-
properties
NacosProperties properties
TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- Returns:
- the default value is
NacosProperties
- Default:
- @com.alibaba.nacos.api.annotation.NacosProperties
-
-