Annotation Type EnableConfigurationBeanBinding
@Target({TYPE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Import(ConfigurationBeanBindingRegistrar.class)
public @interface EnableConfigurationBeanBinding
Enables Spring's annotation-driven configuration bean from
properties.- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSet whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).booleanSet whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.booleanIt indicates whetherprefix()binding to multiple Spring Beans. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default value forignoreInvalidFields()static final booleanThe default value forignoreUnknownFields()static final booleanThe default value formultiple()
-
Field Details
-
DEFAULT_MULTIPLE
static final boolean DEFAULT_MULTIPLEThe default value formultiple()- Since:
- 1.0.6
- See Also:
-
DEFAULT_IGNORE_UNKNOWN_FIELDS
static final boolean DEFAULT_IGNORE_UNKNOWN_FIELDSThe default value forignoreUnknownFields()- Since:
- 1.0.6
- See Also:
-
DEFAULT_IGNORE_INVALID_FIELDS
static final boolean DEFAULT_IGNORE_INVALID_FIELDSThe default value forignoreInvalidFields()- Since:
- 1.0.6
- See Also:
-
-
Element Details
-
prefix
String prefixThe name prefix of the properties that are valid to bind to the type of configuration.- Returns:
- the name prefix of the properties to bind
-
type
Class<?> type- Returns:
- The binding type of configuration.
-
multiple
boolean multipleIt indicates whetherprefix()binding to multiple Spring Beans.- Returns:
- the default value is
false - See Also:
- Default:
false
-
ignoreUnknownFields
boolean ignoreUnknownFieldsSet whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.
- Returns:
- the default value is
true - See Also:
- Default:
true
-
ignoreInvalidFields
boolean ignoreInvalidFieldsSet whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).Default is "true".
- Returns:
- the default value is
true - See Also:
- Default:
true
-