Revert "fix bug of XForwardedHeadersTransformer ConditionalOnBean"
This reverts commit 36781334810ab4f938556ab7da11140ebd3ee4c3.
This commit is contained in:
@@ -56,7 +56,6 @@ import org.springframework.web.reactive.function.client.WebClient;
|
||||
* @author Olga Maciaszek-Sharma
|
||||
* @author Tim Ysewyn
|
||||
* @author BaoLin Zhu
|
||||
* @author changjin wei(魏昌进)
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnDiscoveryEnabled
|
||||
@@ -98,7 +97,7 @@ public class LoadBalancerClientConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnBean(LoadBalancerClientFactory.class)
|
||||
@ConditionalOnBean({ XForwardedHeadersTransformer.class, LoadBalancerClientFactory.class })
|
||||
@ConditionalOnMissingBean
|
||||
public XForwardedHeadersTransformer xForwarderHeadersTransformer(LoadBalancerClientFactory clientFactory) {
|
||||
return new XForwardedHeadersTransformer(clientFactory);
|
||||
|
||||
Reference in New Issue
Block a user