@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface FeignClient
@RibbonClient with the same name (i.e. value) as the feign client.| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
configuration
A custom
@Configuration 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 |
String |
serviceId
Deprecated.
use
name instead |
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}.@Deprecated public abstract String serviceId
name insteadvalue.public abstract String contextId
public abstract String qualifier
@Qualifier value for the feign client.public abstract String url
public abstract boolean decode404
public abstract Class<?>[] configuration
@Configuration for the feign client. Can contain override
@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
@RibbonClient.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.