Cloud Foundry: Consuming arrays with cloud config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring: | |
application: | |
name: appname-service | |
users: | |
service: | |
benefitType: | |
- HEALTH | |
- DENTAL | |
status: | |
- DENIED | |
- PAID_MEMBER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ConfigurationProperties(prefix = "users.service") | |
@Configuration | |
@Component | |
public class UsersData { | |
private String[] benefitType; | |
private String[] status; | |
// setters/getters… | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment