@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Import(value=ConfigurationBeanBindingRegistrar.class) public @interface EnableConfigurationBeanBinding
properties.ConfigurationBeanBindingRegistrar,
ConfigurationBeanBindingPostProcessor,
ConfigurationBeanCustomizer| 限定符和类型 | 必需的元素和说明 |
|---|---|
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 abstract String prefix
public abstract Class<?> type
public abstract boolean multiple
prefix() binding to multiple Spring Beans.falsepublic abstract boolean ignoreUnknownFields
Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.
truepublic abstract boolean ignoreInvalidFields
Default is "true".
trueCopyright © 2019. All rights reserved.