From 66a959b413933d63be40418971387120320c65c3 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Fri, 7 Sep 2018 11:28:40 +0200 Subject: [PATCH] Change default order for SimpleDiscoveryClient. --- .../client/discovery/simple/SimpleDiscoveryProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryProperties.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryProperties.java index 9d25c487..f242ceea 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryProperties.java +++ b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/discovery/simple/SimpleDiscoveryProperties.java @@ -10,7 +10,7 @@ import javax.annotation.PostConstruct; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.client.ServiceInstance; -import org.springframework.core.Ordered; +import org.springframework.cloud.client.discovery.DiscoveryClient; /** * Properties to hold the details of a @@ -35,7 +35,7 @@ public class SimpleDiscoveryProperties { */ private SimpleServiceInstance local = new SimpleServiceInstance(); - private int order = Ordered.LOWEST_PRECEDENCE; + private int order = DiscoveryClient.DEFAULT_ORDER; public Map> getInstances() { return this.instances;