Lovro Pandžić opened SPR-13903 and commented
Currently, officially, only type and generic type information of parameter is used for resolving parameters of constructors. It would be great if parameter names would be used to match by bean name and if this behaviour could be forced somehow (at least for Spring 5 which has baseline Java 8 which is required for parameter names API).
Issue Links:
- #19763 Data binding with immutable objects (Kotlin / Lombok / @ConstructorProperties
)
Comment From: jhoeller
This is effectively covered in several places already.