@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. |
boolean |
decode404
Whether 404s should be decoded instead of throwing FeignExceptions
|
Class<?> |
fallback
Fallback class for the specified Feign client interface.
|
Class<?> |
fallbackFactory
Define a fallback factory for the specified Feign client interface.
|
String |
name
The service id with optional protocol prefix.
|
String |
path
Path prefix to be used by all method-level mappings.
|
boolean |
primary
Whether to mark the feign proxy as a primary bean.
|
String |
qualifier
Sets the
@Qualifier value for the feign client. |
String |
serviceId
Deprecated.
use
name instead |
String |
url
An absolute URL or resolvable hostname (the protocol is optional).
|
String |
value
The name of the service with optional protocol prefix.
|
@Deprecated public abstract String serviceId
name insteadvalue.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 © 2018 Pivotal Software, Inc.. All rights reserved.