Package top.codef.config
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfeign.codec.ErrorDecoder
-
Constructor Details
-
FeignClientExceptionHandlerConfig
public FeignClientExceptionHandlerConfig()
-
-
Method Details
-
feignClientExceptionHandler
-
feignErrorDecoder
@Bean @ConditionalOnMissingBean public feign.codec.ErrorDecoder feignErrorDecoder()
-