Skip to content

Instantly share code, notes, and snippets.

@fitzoh
Created August 26, 2016 20:11
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 fitzoh/a4784bfd7dd00440699f48a8831817e5 to your computer and use it in GitHub Desktop.
Save fitzoh/a4784bfd7dd00440699f48a8831817e5 to your computer and use it in GitHub Desktop.
application:
primary:
config:
foo: primaryfoo
bar: primaryboo
secondary:
config:
foo: secondaryfoo
bar: secondaryboo
@ConfigurationProperties("*.config")??
public class Config {
private String foo;
private String bar;
public String getFoo() {
return foo;
}
public void setFoo(String foo) {
this.foo = foo;
}
public String getBar() {
return bar;
}
public void setBar(String bar) {
this.bar = bar;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment