@NestedConfigurationProperty

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Example

@Component
@ConfigurationProperties(prefix = "example.cryptm")
public class CryptmPropertyConfiguration {

    private String masterKeyArn;

    ...

    @NestedConfigurationProperty
    private DataKeyCachingConfiguration dataKeyCaching;

    ...
}

The class that holds the nested configuration does not need to be annotated, it only needs to be coded as a Java Bean.