mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.0.3
This commit is contained in:
@@ -54,6 +54,6 @@ public class SopConstants {
|
||||
public static final String TARGET_SERVICE = "sop-target-service";
|
||||
public static final String RESTFUL_REQUEST = "sop-restful-request";
|
||||
|
||||
public static final String METADATA_KEY_TIME_STARTUP = "time.startup";
|
||||
public static final String METADATA_KEY_TIME_STARTUP = "server.startup-time";
|
||||
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ public class ServiceConfiguration extends SpringmvcConfiguration {
|
||||
}
|
||||
// 在元数据中新增启动时间,不能修改这个值,不然网关拉取接口会有问题
|
||||
// 如果没有这个值,网关会忽略这个服务
|
||||
metadata.put("time.startup", String.valueOf(System.currentTimeMillis()));
|
||||
metadata.put("server.startup-time", String.valueOf(System.currentTimeMillis()));
|
||||
return new NacosWatch(nacosDiscoveryProperties, taskScheduler);
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ public class OpenServiceConfig extends SpringmvcConfiguration {
|
||||
public static final String SERVER_CONTEXT_PATH = "server.servlet.context-path";
|
||||
public static final String SERVER_IP = "server.ip";
|
||||
public static final String SERVER_PORT = "server.port";
|
||||
public static final String METADATA_TIME_STARTUP = "time.startup";
|
||||
public static final String METADATA_TIME_STARTUP = "server.startup-time";
|
||||
|
||||
static {
|
||||
ServiceConfig.getInstance().setDefaultVersion("1.0");
|
||||
|
Reference in New Issue
Block a user