-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Cannot initialize a map inside @ConfigurationProperties #43352
Comments
For a little more background, the It is inconsistent with the regular I think if we fix this, it will have to be in 3.5 because of the risk that we'll break existing code. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
Because of spring-projects/spring-boot#43352 there's no point having a "default" entry in the channels map.
We discussed this today and we'd like to change the behavior, but we're worried that folks might be relying on the existing way things work. We're specifically concerned that someone may declare a We probably need to find a way to support that use-case. Perhaps a new annotation. |
#41830 is a similar problem related to merging items. |
This fails
Bob’s name is null.
It means you can't initialize a map if you are going to bind to it as well (there's no point as it will just get overwritten). That seems like a bug to me.
The text was updated successfully, but these errors were encountered: