在application.yml中加入如下配置:
feign:
hystrix:
enabled: true
ribbon:
eureka:
enabled: true
Spring Cloud Feign HTTP请求异常Fallback
容错机制,它是基于Hystrix实现的,所以要通过配置参数开启hystrix
在application.yml中加入如下配置:
feign:
hystrix:
enabled: true
ribbon:
eureka:
enabled: true
Spring Cloud Feign HTTP请求异常Fallback
容错机制,它是基于Hystrix实现的,所以要通过配置参数开启hystrix