Class FeignClientExceptionHandlerConfig

java.lang.Object
top.codef.config.FeignClientExceptionHandlerConfig

@Configuration @ConditionalOnProperty(name="ameba.enable-error-advice", havingValue="true") @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass({feign.FeignException.class,feign.codec.ErrorDecoder.class}) public class FeignClientExceptionHandlerConfig extends Object
  • Constructor Details

    • FeignClientExceptionHandlerConfig

      public FeignClientExceptionHandlerConfig()
  • Method Details

    • feignClientExceptionHandler

      @Bean @ConditionalOnMissingBean public FeignClientExceptionHandler feignClientExceptionHandler()
    • feignErrorDecoder

      @Bean @ConditionalOnMissingBean public feign.codec.ErrorDecoder feignErrorDecoder()