Skip to content

Instantly share code, notes, and snippets.

@seyDoggy
Created April 7, 2017 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seyDoggy/672d4b84b30d5a1f4268cd9339acc6d0 to your computer and use it in GitHub Desktop.
Save seyDoggy/672d4b84b30d5a1f4268cd9339acc6d0 to your computer and use it in GitHub Desktop.
Cloud Foundry: Consuming arrays with cloud config
spring:
application:
name: appname-service
users:
service:
benefitType:
- HEALTH
- DENTAL
status:
- DENIED
- PAID_MEMBER
@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