From 4d00a8f20f8f1956595ab0ee5c18f92b0b163b2b Mon Sep 17 00:00:00 2001 From: noear Date: Wed, 23 Oct 2024 22:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20solon-docs-openapi2=20?= =?UTF-8?q?=E5=88=86=E5=B8=83=E5=BC=8F=E6=96=87=E6=A1=A3=EF=BC=8C=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=BD=AC=E5=8F=91=E5=87=BA=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/layjava/docs/javadoc/solon/OpenApi2Utils.java | 2 +- .../main/java/org/noear/solon/docs/openapi2/OpenApi2Utils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } }