mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
获取context-path优化
This commit is contained in:
@@ -44,9 +44,9 @@ public class ServiceDocListener extends BaseServiceListener {
|
||||
}
|
||||
}
|
||||
|
||||
private static String getRouteRequestUrl(InstanceDefinition instance) {
|
||||
private String getRouteRequestUrl(InstanceDefinition instance) {
|
||||
String query = buildQuery(SECRET);
|
||||
String contextPath = instance.getMetadata().getOrDefault(SopConstants.METADATA_SERVER_CONTEXT_PATH, "");
|
||||
String contextPath = this.getContextPath(instance.getMetadata());
|
||||
return "http://" + instance.getIp() + ":" + instance.getPort() + contextPath + "/v2/api-docs" + query;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user