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;