Created
April 7, 2017 13:28
-
-
Save seyDoggy/672d4b84b30d5a1f4268cd9339acc6d0 to your computer and use it in GitHub Desktop.
Cloud Foundry: Consuming arrays with cloud config
This file contains hidden or 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 hidden or 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