Skip to content

Support HttpServiceClient annotation #35244

@rstoyanchev

Description

@rstoyanchev

#33992 added support for importing HTTP service proxies into a registry and declaring them as beans for direct autowiring. This can be done centrally through@ImportHttpServices and also through extensions of AbstractHttpServiceRegistrar as described in the docs.

It would be useful to have an alternative, more decentralized option too, e.g. an @HttpServiceClient annotation to put on an HTTP service interface with the option to declare the group it belongs to through an attribute. We can provide this along with dedicated extension of AbstractHttpServiceRegistrar that looks for such annotated interfaces in specified base packages.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions