Skip to content

Instantly share code, notes, and snippets.

@bvulaj
Last active March 14, 2018 22:19
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 bvulaj/ee1cf897ae71c47d2264a741a74beecf to your computer and use it in GitHub Desktop.
Save bvulaj/ee1cf897ae71c47d2264a741a74beecf to your computer and use it in GitHub Desktop.
Nested Configuration Objects w/ an Inner Class
props.innerClass.name=foo
props.otherInnerClass.name=bar
@Component
@ConfigurationProperties("props")
public class InnerClassProperties {
private InnerClass innerClass;
private InnerClass otherInnerClass;
public static class InnerClass {
private String name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment