注释类型 NestedConfigurationProperty
@Target(FIELD) @Retention(RUNTIME) @Documented public @interface NestedConfigurationProperty
Indicates that a field in aConfigurationProperties
object should be treated as if it were a nested type. This annotation has no bearing on the actual binding processes, but it is used by thespring-boot-configuration-processor
as a hint that a field is not bound as a single value. When this is specified, a nested group is created for the field and its type is harvested.This has no effect on collections and maps as these types are automatically identified.
- 从以下版本开始:
- 1.2.0