Package reactivefeign.spring.config
Annotation Type ReactiveFeignClient
-
@Target(TYPE) @Retention(RUNTIME) @Documented public @interface ReactiveFeignClientAnnotation 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 java.lang.Class<?>[]configurationA custom@Configurationfor the feign client.booleandecode404Whether 404s should be decoded instead of throwing FeignExceptionsjava.lang.Class<?>fallbackFallback class for the specified Feign client interface.java.lang.Class<?>fallbackFactoryDefine a fallback factory for the specified Feign client interface.java.lang.StringnameThe service id with optional protocol prefix.java.lang.StringpathPath prefix to be used by all method-level mappings.booleanprimaryWhether to mark the feign proxy as a primary bean.java.lang.StringqualifierSets the@Qualifiervalue for the feign client.java.lang.StringurlAn absolute URL or resolvable hostname (the protocol is optional).java.lang.StringvalueThe name of the service with optional protocol prefix.
-
-
-
Element Detail
-
value
@AliasFor("name") java.lang.String valueThe name of the service with optional protocol prefix. Synonym forname. A name must be specified for all clients, whether or not a url is provided. Can be specified as property key, eg: ${propertyKey}.- Default:
- ""
-
-
-
name
@AliasFor("value") java.lang.String nameThe service id with optional protocol prefix. Synonym forvalue.- Default:
- ""
-
-
-
configuration
java.lang.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:
- {}
-
-
-
fallbackFactory
java.lang.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
-
-