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
{{ message }}
Repository navigation
HttpServiceClientProperties incorrectly uses the @ConfigurationProperties annotation on a LinkedHashMap class #48616
HttpServiceClientProperties is quite unusual at the moment, and does not seem to work correctly in the IDE. We should review the problems, report to the relevant projects if needs to be.
Essentially we have the problem that the target of the Map is relying on features that are normally handled by the annotation processor. Things like @NestedConfigurationProperty and @Name are not handled at all.
Exposing HttpServiceClientProperties directly as a LinkedHashMap can also be problematic: there are manual metadata for the property but the property and the group have the same identifier.
We discussed this today and we're going to try removing the @ConfigurationProperties("spring.http.serviceclient") annotation and binding things manually.
changed the title [-]Review how metadata for HTTP Service Clients is defined[/-][+]HttpServiceClientProperties incorrectly uses the @ConfigurationProperties annotation on a LinkedHashMap class[/+]on Jan 7, 2026
Activity
snicoll commentedon Dec 24, 2025
Essentially we have the problem that the target of the
Mapis relying on features that are normally handled by the annotation processor. Things like@NestedConfigurationPropertyand@Nameare not handled at all.Exposing
HttpServiceClientPropertiesdirectly as aLinkedHashMapcan also be problematic: there are manual metadata for the property but the property and the group have the same identifier.snicoll commentedon Dec 29, 2025
I've also submitted an improvement to IntelliJ IDEA that should complement the issues in STS.
philwebb commentedon Jan 7, 2026
We discussed this today and we're going to try removing the
@ConfigurationProperties("spring.http.serviceclient")annotation and binding things manually.[-]Review how metadata for HTTP Service Clients is defined[/-][+]HttpServiceClientProperties incorrectly uses the @ConfigurationProperties annotation on a LinkedHashMap class[/+]Bind HttpServiceClientProperties directly