@ConstructorBinding
@ConfigurationProperties("test")
static class NestedConstructorProperties {
private final String name;
private final Nested nested;
NestedConstructorProperties(String name, Nested nested) {
this.name = name;
this.nested = nested;
}
String getName() {
return this.name;
}
Nested getNested() {
return this.nested;
}
static class Nested {
private int age;
@ConstructorBinding
Nested(int age) {
this.age = age;
}
Nested() {
}
int getAge() {
return this.age;
}
}
}