Spring Cloud Feign 在调用接口类上,配置熔断 fallback后,输出异常

Spring Cloud Feign 在调用接口类上,配置熔断 fallback后,出现请求异常时,会进入熔断处理,但是不会抛出异常信息。

经过以下配置,可以抛出异常:

FeignClient注解上,加

configuration = FeignConfiguration.class

猜你喜欢

转载自www.cnblogs.com/yanqin/p/9178718.html
今日推荐