Add @Qualifier customization for @FeignClient
Changed test to use @Qualifier. Add documentation to reference the new attribute.
This commit is contained in:
@@ -790,7 +790,12 @@ In the `@FeignClient` annotation the String value ("stores" above) is
|
||||
an arbitrary client name, which is used to create a Ribbon load
|
||||
balancer (see <<spring-cloud-ribbon,below for details of Ribbon
|
||||
support>>). You can also specify a URL using the `url` attribute
|
||||
(absolute value or just a hostname). The name of the bean in the application context is the fully qualified name of the interface. An alias is also created which is the 'name' attribute plus 'FeignClient'. For the example above, `@Qualifier("storesFeignClient")` could be used to reference the bean.
|
||||
(absolute value or just a hostname). The name of the bean in the
|
||||
application context is the fully qualified name of the interface.
|
||||
An alias is also created which is the 'name' attribute plus 'FeignClient'.
|
||||
For the example above, `@Qualifier("storesFeignClient")` could be used to
|
||||
reference the bean. If you want to change the default `@Qualifier` value,
|
||||
this can be done with the `qualifier` value in `@FeignClient`.
|
||||
|
||||
The Ribbon client above will want to discover the physical addresses
|
||||
for the "stores" service. If your application is a Eureka client then
|
||||
|
||||
Reference in New Issue
Block a user