mirror of
https://github.com/spring-cloud/spring-cloud-netflix.git
synced 2026-09-17 15:49:00 +00:00
Do not load RibbonAutoConfiguration when spring.cloud.loadbalancer.ribbon.enabled is false. (#3977)
This commit is contained in:
+2
-1
@@ -65,11 +65,12 @@ import org.springframework.web.client.RestTemplate;
|
||||
AsyncLoadBalancerAutoConfiguration.class })
|
||||
@EnableConfigurationProperties({ RibbonEagerLoadProperties.class,
|
||||
ServerIntrospectorProperties.class })
|
||||
@ConditionalOnProperty(value = "spring.cloud.loadbalancer.ribbon.enabled",
|
||||
havingValue = "true", matchIfMissing = true)
|
||||
public class RibbonAutoConfiguration {
|
||||
|
||||
@Autowired(required = false)
|
||||
private List<RibbonClientSpecification> configurations = new ArrayList<>();
|
||||
|
||||
@Autowired
|
||||
private RibbonEagerLoadProperties ribbonEagerLoadProperties;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user