@NestedConfigurationProperty

From NovaOrdis Knowledge Base
Revision as of 23:42, 2 January 2019 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.