Skip to content

Support multiple qualifiers in FeignClient annotation (using multiple Spring bean aliases)  #471

@gviczai

Description

@gviczai

Is your feature request related to a problem? Please describe.
I would like to use the same feign client in several of our custom spring libraries. Each library autowires a feign client by name (using Qualifier annotations). Unfortunately, in the FeignClient annotation, only one qualifier can be defined.

Describe the solution you'd like
I would like that FeignClient annotation's qualifier attribute should be changed to a String array.
(And of course the underlying code should pass this array to Spring instead of a single String:

BeanDefinitionHolder holder = new BeanDefinitionHolder(beanDefinition, className, new String[] { alias });

Describe alternatives you've considered
Currently we are forced to use multiple FeignClients implementing the same API but having a different qualifier...

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions