Skip to content

Instantly share code, notes, and snippets.

@bvulaj bvulaj/NonInnerClass.java
Last active Mar 14, 2018

Embed
What would you like to do?
Nested Configuration Objects w/o an Inner Class
props.nonInnerClass.name=foo
props.otherNonInnerClass.name=bar
public class NonInnerClass {
private String name;
}
@Component
@ConfigurationProperties("props")
public class NonInnerClassProperties {
@NestedConfigurationProperty
private NonInnerClass nonInnerClass;
@NestedConfigurationProperty
private NonInnerClass otherNonInnerClass;
}
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.