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
      java.lang.Class<?>[] configuration
      A custom @Configuration for the feign client.
      boolean decode404
      Whether 404s should be decoded instead of throwing FeignExceptions
      java.lang.Class<?> fallback
      Fallback class for the specified Feign client interface.
      java.lang.Class<?> fallbackFactory
      Define a fallback factory for the specified Feign client interface.
      java.lang.String name
      The service id with optional protocol prefix.
      java.lang.String path
      Path prefix to be used by all method-level mappings.
      boolean primary
      Whether to mark the feign proxy as a primary bean.
      java.lang.String qualifier
      Sets the @Qualifier value for the feign client.
      java.lang.String url
      An absolute URL or resolvable hostname (the protocol is optional).
      java.lang.String value
      The name of the service with optional protocol prefix.
    • Element Detail

      • value

        @AliasFor("name")
        java.lang.String value
        The name of the service with optional protocol prefix. Synonym for name. 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 name
        The service id with optional protocol prefix. Synonym for value.
        Default:
        ""
      • qualifier

        java.lang.String qualifier
        Sets the @Qualifier value for the feign client.
        Default:
        ""
      • url

        java.lang.String url
        An absolute URL or resolvable hostname (the protocol is optional).
        Default:
        ""
      • decode404

        boolean decode404
        Whether 404s should be decoded instead of throwing FeignExceptions
        Default:
        false
      • configuration

        java.lang.Class<?>[] configuration
        A custom @Configuration for the feign client. Can contain override @Bean definition for the pieces that make up the client, for instance ReactiveHttpRequestInterceptor, Contract.
        See Also:
        for the defaults
        Default:
        {}
      • fallback

        java.lang.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

        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 by ReactiveFeignClient. The fallback factory must be a valid spring bean.
        Default:
        void.class
      • path

        java.lang.String path
        Path prefix to be used by all method-level mappings. Can be used with or without @RibbonClient.
        Default:
        ""
      • primary

        boolean primary
        Whether to mark the feign proxy as a primary bean. Defaults to true.
        Default:
        true