注释类型 EnableConfigurationBeanBinding
-
@Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Import(ConfigurationBeanBindingRegistrar.class) @Repeatable(EnableConfigurationBeanBindings.class) public @interface EnableConfigurationBeanBinding
Enables Spring's annotation-driven configuration bean fromproperties
.- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
ConfigurationBeanBindingRegistrar
,ConfigurationBeanBindingPostProcessor
,ConfigurationBeanCustomizer
-
-
字段概要
字段 修饰符和类型 字段 说明 static boolean
DEFAULT_IGNORE_INVALID_FIELDS
The default value forignoreInvalidFields()
static boolean
DEFAULT_IGNORE_UNKNOWN_FIELDS
The default value forignoreUnknownFields()
static boolean
DEFAULT_MULTIPLE
The default value formultiple()
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 boolean
ignoreInvalidFields
Set 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).boolean
ignoreUnknownFields
Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.boolean
multiple
It indicates whetherprefix()
binding to multiple Spring Beans.
-
-
-
字段详细资料
-
DEFAULT_MULTIPLE
static final boolean DEFAULT_MULTIPLE
The default value formultiple()
- 从以下版本开始:
- 1.0.0
-
-
-
DEFAULT_IGNORE_UNKNOWN_FIELDS
static final boolean DEFAULT_IGNORE_UNKNOWN_FIELDS
The default value forignoreUnknownFields()
- 从以下版本开始:
- 1.0.0
-
-
-
DEFAULT_IGNORE_INVALID_FIELDS
static final boolean DEFAULT_IGNORE_INVALID_FIELDS
The default value forignoreInvalidFields()
- 从以下版本开始:
- 1.0.0
-
-
-
multiple
boolean multiple
It indicates whetherprefix()
binding to multiple Spring Beans.- 返回:
- the default value is
false
- 另请参阅:
DEFAULT_MULTIPLE
- 默认值:
- false
-
-
-
ignoreUnknownFields
boolean ignoreUnknownFields
Set 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.
- 返回:
- the default value is
true
- 另请参阅:
DEFAULT_IGNORE_UNKNOWN_FIELDS
- 默认值:
- true
-
-
-
ignoreInvalidFields
boolean ignoreInvalidFields
Set 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".
- 返回:
- the default value is
true
- 另请参阅:
DEFAULT_IGNORE_INVALID_FIELDS
- 默认值:
- true
-
-