@Configuration(value="hystrixFeignConfiguration")
@ConditionalOnClass(value={com.netflix.hystrix.HystrixCommand.class,feign.hystrix.HystrixFeign.class})
protected static class FeignAutoConfiguration.HystrixFeignConfiguration
extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
HystrixFeignConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
FeignHeaderRequestInterceptor |
feignHeaderRequestInterceptor()
feign client 请求头传播
|
feign.Feign.Builder |
feignHystrixBuilder(feign.RequestInterceptor requestInterceptor)
覆盖了 org.springframework.cloud.openfeign.FeignClientsConfiguration 的配置
|
@Bean @Scope(value="prototype") @ConditionalOnProperty(value="feign.hystrix.enabled") public feign.Feign.Builder feignHystrixBuilder(feign.RequestInterceptor requestInterceptor)
@ConditionalOnMissingBean @Bean public FeignHeaderRequestInterceptor feignHeaderRequestInterceptor()
Copyright © 2022. All rights reserved.