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.
Comment From: madanhk18
\assign-me
Comment From: wilkinsona
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.
Comment From: madanhk18
Okay sir ,no problem
Comment From: philwebb
We'll consider our options here as part of #45511