- 
                Notifications
    You must be signed in to change notification settings 
- Fork 41.6k
Closed
Labels
type: documentationA documentation updateA documentation update
Milestone
Description
Here is an example of my problem. when no value is supplied to default-name in yml file. @DefaultValue should step in and fill with Name. However, is not how it behaves. An empty string is assigned to defaultName.
application.yml:
account:
  default-name: class:
@ConstructorBinding
@ConfigurationProperties(prefix = "account")
public class Account {
    private final String defaultName;
    public Account(@DefaultValue("Name") String defaultName) {
        this.defaultName = defaultName;
    }
..Metadata
Metadata
Assignees
Labels
type: documentationA documentation updateA documentation update