-
Notifications
You must be signed in to change notification settings - Fork 40.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document nesting configuration properties using records or Kotlin data classes and how and when to use @NestedConfigurationProperty #33235
Comments
Looking at this more closely, the problem is that it's not clear that
It should also be possible to use |
Kotlin's smart enough to apply the
Java records are also OK. You can either nest the records:
Or use the annotation:
We should add some examples to the documentation. |
#33239 should be done before this. |
FYI: I've done #33239. |
Having a simple Kotlin Spring Boot application (link), adding some data class as configuration properties class causes the native image to fail due to some reflection issues:
Stacktrace:
Adding the following hint resolve the issue:
I'm not sure if this is an issue in Spring Boot or Sprig Framework.
The text was updated successfully, but these errors were encountered: