You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spring Boot 2.4.0 added custom property name support for constructor binding on configuration property classes. The release notes mention a Java example. I guess it should also work for Kotlin data classes.
scottfrederick
changed the title
custom property name support in Kotlin fails
@Name support for value object binding fails with Kotlin classes
Dec 8, 2020
Spring Boot 2.4.0 added custom property name support for constructor binding on configuration property classes. The release notes mention a Java example. I guess it should also work for Kotlin data classes.
Java:
Kotlin:
application.yml:
The test is successful for Java but fails for Kotlin. Here is a minimal example.
The text was updated successfully, but these errors were encountered: