Annotation Interface NestedConfigurationProperty


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface NestedConfigurationProperty
Indicates that a field in a @ConfigurationProperties 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 the 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.

从以下版本开始:
4.0
作者:
Stephane Nicoll, Phillip Webb, Harry Yang