Skip to content

Instantly share code, notes, and snippets.

@seyDoggy
Created April 7, 2017 13:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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