diff --git a/solon-projects/solon-docs/solon-docs-openapi2-javadoc/src/main/java/com/layjava/docs/javadoc/solon/OpenApi2Utils.java b/solon-projects/solon-docs/solon-docs-openapi2-javadoc/src/main/java/com/layjava/docs/javadoc/solon/OpenApi2Utils.java index 40f8c31116..7fbc09ba6b 100644 --- a/solon-projects/solon-docs/solon-docs-openapi2-javadoc/src/main/java/com/layjava/docs/javadoc/solon/OpenApi2Utils.java +++ b/solon-projects/solon-docs/solon-docs-openapi2-javadoc/src/main/java/com/layjava/docs/javadoc/solon/OpenApi2Utils.java @@ -111,7 +111,7 @@ public static String getApiJson(Context ctx, String group) throws IOException { throw new SolonException("The target service does not exist (" + upstreamTarget + ")"); } - String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()).substring(1); + String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()); return httpGet(url, docket); } } diff --git a/solon-projects/solon-docs/solon-docs-openapi2/src/main/java/org/noear/solon/docs/openapi2/OpenApi2Utils.java b/solon-projects/solon-docs/solon-docs-openapi2/src/main/java/org/noear/solon/docs/openapi2/OpenApi2Utils.java index 4eaae30795..240e9739f4 100644 --- a/solon-projects/solon-docs/solon-docs-openapi2/src/main/java/org/noear/solon/docs/openapi2/OpenApi2Utils.java +++ b/solon-projects/solon-docs/solon-docs-openapi2/src/main/java/org/noear/solon/docs/openapi2/OpenApi2Utils.java @@ -109,7 +109,7 @@ public static String getApiJson(Context ctx, String group) throws IOException { throw new SolonException("The target service does not exist (" + upstreamTarget + ")"); } - String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()).substring(1); + String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()); return httpGet(url, docket); } }