@NestedConfigurationProperty: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
The class that holds the nested configuration does not need to be annotated, it only needs to be coded as a Java Bean. |
Latest revision as of 23:42, 2 January 2019
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.