@ConfigurationProperties("test")
static class JavaBeanNestedConstructorBindingProperties {
private Nested nested;
Nested getNested() {
return this.nested;
}
public void setNested(Nested nested) {
this.nested = nested;
}
static class Nested {
private final int age;
@ConstructorBinding
private Nested(int age) {
this.age = age;
}
int getAge() {
return this.age;
}
}
}