• Madhura Bhave's avatar
    Add support for initializing nested object when nothing bound · af6d5387
    Madhura Bhave authored
    When using constructor binding, if no properties are bound to
    a nested property, the top-level instance will be created with a
    null value for the nested property.
    This commit introduces support for an empty `@DefaultValue` which
    indicates that an instance of the nested property must be created
    even if nothing is bound to it. It honors any `@DefaultValue`
    annotations that the nested property might have in its constructor.
    
    Closes gh-18917
    af6d5387
spring-boot-features.adoc 358 KB