Use @ConfigurationProperties.