Consider how to support HTTP service clients without using @ImportHttpServices
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:
- Do nothing and always require
@ImportHttpServices - Add a dedicated
@HttpClientannotation with support for the group - 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.
\assign-me
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.
Okay sir ,no problem
We'll consider our options here as part of #47179.