Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.