Browse Source

fix eureka-first test

pull/6/head
Spencer Gibb 9 years ago
parent
commit
d809ac9999
  1. 3
      spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/config/DiscoveryClientConfigServiceBootstrapConfiguration.java

3
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/config/DiscoveryClientConfigServiceBootstrapConfiguration.java

@ -26,6 +26,7 @@ import org.springframework.cloud.client.discovery.DiscoveryClient; @@ -26,6 +26,7 @@ import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.config.client.ConfigClientProperties;
import org.springframework.cloud.config.client.ConfigServicePropertySourceLocator;
import org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration;
import org.springframework.cloud.util.UtilAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.event.ContextRefreshedEvent;
@ -45,7 +46,7 @@ import lombok.extern.apachecommons.CommonsLog; @@ -45,7 +46,7 @@ import lombok.extern.apachecommons.CommonsLog;
@ConditionalOnClass({ EurekaClient.class, ConfigServicePropertySourceLocator.class })
@ConditionalOnProperty(value = "spring.cloud.config.discovery.enabled", matchIfMissing = false)
@Configuration
@Import(EurekaClientAutoConfiguration.class)
@Import({ UtilAutoConfiguration.class, EurekaClientAutoConfiguration.class })
@CommonsLog
public class DiscoveryClientConfigServiceBootstrapConfiguration {

Loading…
Cancel
Save