Package reactivefeign.spring.config
Annotation Type ReactiveFeignClient
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface ReactiveFeignClient
Annotation for interfaces declaring that a REST client with that interface should be created (e.g. for autowiring into another component). patterned after org.springframework.cloud.netflix.feign.FeignClient
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>[]configurationA custom@Configurationfor the feign client.booleandecode404Whether 404s should be decoded instead of throwing FeignExceptionsClass<?>fallbackFallback class for the specified Feign client interface.Class<?>fallbackFactoryDefine a fallback factory for the specified Feign client interface.StringnameThe service id with optional protocol prefix.StringpathPath prefix to be used by all method-level mappings.booleanprimaryWhether to mark the feign proxy as a primary bean.StringqualifierSets the@Qualifiervalue for the feign client.StringurlAn absolute URL or resolvable hostname (the protocol is optional).StringvalueThe name of the service with optional protocol prefix.
-
-
-
-
qualifier
String qualifier
Sets the@Qualifiervalue for the feign client.- Default:
- ""
-
-
-
url
String url
An absolute URL or resolvable hostname (the protocol is optional).- Default:
- ""
-
-
-
configuration
Class<?>[] configuration
A custom@Configurationfor the feign client. Can contain override@Beandefinition for the pieces that make up the client, for instanceReactiveHttpRequestInterceptor,Contract.- See Also:
for the defaults
- Default:
- {}
-
-
-
fallback
Class<?> fallback
Fallback class for the specified Feign client interface. The fallback class must implement the interface annotated by this annotation and be a valid spring bean.- Default:
- void.class
-
-
-
fallbackFactory
Class<?> fallbackFactory
Define a fallback factory for the specified Feign client interface. The fallback factory must produce instances of fallback classes that implement the interface annotated byReactiveFeignClient. The fallback factory must be a valid spring bean.- Default:
- void.class
-
-
-
path
String path
Path prefix to be used by all method-level mappings. Can be used with or without@RibbonClient.- Default:
- ""
-
-