spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Consider how to support HTTP service clients without using @ImportHttpServices

Open philwebb opened this issue 8 months ago • 3 comments

Our initial cut of HTTP Service clients doesn't support automatic classpath scanning and as such @ImportHttpServices is always required. We should consider if we want to try and support automatic detection based on a class-level annotation directly on the interface client interface.

Three options considered so far:

  1. Do nothing and always require @ImportHttpServices
  2. Add a dedicated @HttpClient annotation with support for the group
  3. Support a special pseudo URL on @HttpExchange, something like @HttpExchange("clientservicegroup://mygroup")

Option 3 is prototyped in https://github.com/philwebb/spring-boot/commits/interface-client-7, but will require changes to Spring Framework.

philwebb avatar May 13 '25 04:05 philwebb

\assign-me

madanhk18 avatar May 28 '25 07:05 madanhk18

Thanks for the offer, @madanhk18, but this needs to be handled by the core team as there are some design decisions to be made that may require collaboration with other projects.

wilkinsona avatar May 28 '25 08:05 wilkinsona

Okay sir ,no problem

madanhk18 avatar May 28 '25 08:05 madanhk18

We'll consider our options here as part of #47179.

philwebb avatar Sep 15 '25 19:09 philwebb