com.easy.core.loadbalancer.GrayLoadBalanceAutoConfiguration Maven / Gradle / Ivy
The newest version!
package com.easy.core.loadbalancer;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration;
import org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerClientAutoConfiguration;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration(proxyBeanMethods = false)
@LoadBalancerClients(defaultConfiguration = GrayLoadBalanceConfiguration.class)
@AutoConfigureBefore({ ReactorLoadBalancerClientAutoConfiguration.class,
LoadBalancerBeanPostProcessorAutoConfiguration.class })
public class GrayLoadBalanceAutoConfiguration {
@Bean
public FeignHeaderIntercept feignHeaderIntercept(){
return new FeignHeaderIntercept();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy