Changed property name from zuul.ribbon.eager-load to zuul.ribbon.eager-load.enabled

This commit is contained in:
Biju Kunjummen
2017-03-07 09:50:44 -08:00
parent 567a6c4a9f
commit 2d9604918a
3 changed files with 4 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ public class ZuulConfiguration {
}
@Bean
@ConditionalOnProperty(value = "zuul.ribbon.eager-load", matchIfMissing = false)
@ConditionalOnProperty(value = "zuul.ribbon.eager-load.enabled", matchIfMissing = false)
public ZuulRouteApplicationContextInitializer zuulRoutesApplicationContextInitiazer(
SpringClientFactory springClientFactory) {
return new ZuulRouteApplicationContextInitializer(springClientFactory,

View File

@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class)
@SpringBootTest(value = { "zuul.routes.myroute.service-id=eager",
"zuul.ribbon.eager-load=true" })
"zuul.ribbon.eager-load.enabled=true" })
@DirtiesContext
public class EagerLoadOfZuulConfigurationTests {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -79,7 +79,7 @@ import com.netflix.loadbalancer.ServerList;
"zuul.routes.other: /test/**=http://localhost:7777/local",
"zuul.routes.another: /another/twolevel/**", "zuul.routes.simple: /simple/**",
"zuul.routes.singleton: /singleton/**",
"zuul.routes.singleton.sensitiveHeaders: ","zuul.context.startup.enabled: true" })
"zuul.routes.singleton.sensitiveHeaders: " })
@DirtiesContext
public class HttpClientRibbonCommandIntegrationTests extends ZuulProxyTestBase {