Updates for new method in ServiceInstance

See https://github.com/spring-cloud/spring-cloud-commons/pull/1604
This commit is contained in:
spencergibb
2025-11-22 19:51:14 -05:00
parent c935fd79ec
commit f722baa811
2 changed files with 3 additions and 4 deletions
@@ -22,7 +22,6 @@ import java.util.Objects;
import com.netflix.appinfo.InstanceInfo;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.core.style.ToStringCreator;
import org.springframework.util.Assert;
@@ -81,7 +80,7 @@ public class EurekaServiceInstance implements ServiceInstance {
@Override
public URI getUri() {
return DefaultServiceInstance.getUri(this);
return ServiceInstance.createUri(this);
}
@Override
@@ -32,7 +32,7 @@ import org.apache.commons.logging.LogFactory;
import org.springframework.aop.framework.Advised;
import org.springframework.aop.support.AopUtils;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.serviceregistry.Registration;
import org.springframework.cloud.netflix.eureka.CloudEurekaClient;
import org.springframework.cloud.netflix.eureka.CloudEurekaInstanceConfig;
@@ -102,7 +102,7 @@ public class EurekaRegistration implements Registration {
@Override
public URI getUri() {
return DefaultServiceInstance.getUri(this);
return ServiceInstance.createUri(this);
}
@Override