@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.
|
String |
name
The service id with optional protocol prefix.
|
String |
path
Path prefix to be used by all method-level mappings.
|
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 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 defaults
public abstract Class<?> fallback
public abstract String path
@RibbonClient
.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.