@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface FeignClient
| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
configuration
A custom configuration class for the feign client.
|
String |
contextId
This will be used as the bean name instead of name if present, but will not be used
as a service id.
|
boolean |
decode404 |
Class<?> |
fallback
Fallback class for the specified Feign client interface.
|
Class<?> |
fallbackFactory
Define a fallback factory for the specified Feign client interface.
|
String |
name |
String |
path |
boolean |
primary |
String |
qualifier
Deprecated.
in favour of
qualifiers().
If both qualifier() and qualifiers() are present, we will use the
latter, unless the array returned by qualifiers() is empty or only
contains null or whitespace values, in which case we'll fall back
first to qualifier() and, if that's also not present, to the default =
contextId + "FeignClient". |
String[] |
qualifiers |
String |
url |
String |
value
The name of the service with optional protocol prefix.
|
@AliasFor(value="name") public abstract String value
name. A name must be specified for all clients, whether or not a url is provided.
Can be specified as property key, eg: ${propertyKey}.public abstract String contextId
@Deprecated public abstract String qualifier
qualifiers().
If both qualifier() and qualifiers() are present, we will use the
latter, unless the array returned by qualifiers() is empty or only
contains null or whitespace values, in which case we'll fall back
first to qualifier() and, if that's also not present, to the default =
contextId + "FeignClient".@Qualifier value for the feign client.public abstract String[] qualifiers
@Qualifiers value for the feign client.
If both qualifier() and qualifiers() are present, we will use the
latter, unless the array returned by qualifiers() is empty or only
contains null or whitespace values, in which case we'll fall back
first to qualifier() and, if that's also not present, to the default =
contextId + "FeignClient".public abstract String url
public abstract boolean decode404
public abstract Class<?>[] configuration
@Bean definition for the pieces that make up the client, for instance
Decoder, Encoder, Contract.for the defaultspublic abstract Class<?> fallback
public abstract Class<?> fallbackFactory
FeignClient. The fallback factory must be a valid spring bean.for details.public abstract String path
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.