@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Import(value=ConfigurationBeanBindingRegistrar.class) public @interface EnableConfigurationBeanBinding
properties.ConfigurationBeanBindingRegistrar,
ConfigurationBeanBindingPostProcessor,
ConfigurationBeanCustomizer| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
DEFAULT_IGNORE_INVALID_FIELDS
The default value for
ignoreInvalidFields() |
static boolean |
DEFAULT_IGNORE_UNKNOWN_FIELDS
The default value for
ignoreUnknownFields() |
static boolean |
DEFAULT_MULTIPLE
The default value for
multiple() |
| 限定符和类型 | 必需的元素和说明 |
|---|---|
String |
prefix
The name prefix of the properties that are valid to bind to the type of configuration.
|
Class<?> |
type |
| 限定符和类型 | 可选元素和说明 |
|---|---|
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 whether
prefix() binding to multiple Spring Beans. |
public static final boolean DEFAULT_MULTIPLE
multiple()public static final boolean DEFAULT_IGNORE_UNKNOWN_FIELDS
ignoreUnknownFields()public static final boolean DEFAULT_IGNORE_INVALID_FIELDS
ignoreInvalidFields()public abstract String prefix
public abstract Class<?> type
public abstract boolean multiple
prefix() binding to multiple Spring Beans.falseDEFAULT_MULTIPLEpublic abstract boolean ignoreUnknownFields
Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.
trueDEFAULT_IGNORE_UNKNOWN_FIELDSpublic abstract boolean ignoreInvalidFields
Default is "true".
trueDEFAULT_IGNORE_INVALID_FIELDSCopyright © 2020. All rights reserved.