-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
Spring Boot version: 2.2.1.RELEASE
Having the following properties
prefix:
obj:
foo:
firstName: John
lastName: Doe
bar: {}
And given the following properties class
@ConstructorBinding
@ConfigurationProperties("prefix")
data class ObjProperties(val obj: Map<String, FooBarProperties>)
@ConstructorBinding
data class FooBarProperties(val firstName: String? = "", val lastName: String? = "")
I was expecting that injecting ObjProperties bean will result in having both foo
property and bar
property in obj
map. Unfortunately, bar
property is missing from the obj
map.
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply