Skip to content

HttpServiceClientProperties incorrectly uses the @ConfigurationProperties annotation on a LinkedHashMap class #48616

Closed

Description

@snicoll

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.

Activity

  1. added this to the 4.0.x milestone on Dec 24, 2025
  2. snicoll commented on Dec 24, 2025

    @snicoll
    MemberAuthor

    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.

  3. snicoll commented on Dec 29, 2025

    @snicoll
    MemberAuthor

    I've also submitted an improvement to IntelliJ IDEA that should complement the issues in STS.

  4. added
    for: team-meeting
    on Jan 4, 2026
  5. philwebb commented on Jan 7, 2026

    @philwebb
    Member

    We discussed this today and we're going to try removing the @ConfigurationProperties("spring.http.serviceclient") annotation and binding things manually.

  6. 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
  7. added
    type: bug
    and removed
    type: task
    for: team-meeting
    on Jan 7, 2026
  8. self-assigned this
    on Jan 7, 2026
  9. added a commit that references this issue on Jan 8, 2026
    70ce043
  10. modified the milestones: 4.0.x, 4.0.2 on Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions