diff --git a/sop-common/sop-bridge-eureka/src/main/java/com/gitee/sop/bridge/route/EurekaRegistryListener.java b/sop-common/sop-bridge-eureka/src/main/java/com/gitee/sop/bridge/route/EurekaRegistryListener.java index e6b9b264..5cca66ad 100644 --- a/sop-common/sop-bridge-eureka/src/main/java/com/gitee/sop/bridge/route/EurekaRegistryListener.java +++ b/sop-common/sop-bridge-eureka/src/main/java/com/gitee/sop/bridge/route/EurekaRegistryListener.java @@ -54,7 +54,7 @@ public class EurekaRegistryListener extends BaseRegistryListener { if (startupTime == null) { return null; } - return new ServiceHolder(instanceInfo.getAppName(), instanceInfo.getLastUpdatedTimestamp()); + return new ServiceHolder(instanceInfo.getAppName(), Long.parseLong(startupTime)); }).orElse(null); }) .filter(Objects::nonNull)