From e9351b5e7e15a331714c8f97c9350ad2698b4fb3 Mon Sep 17 00:00:00 2001 From: li longlong <473302042@qq.com> Date: Tue, 6 Feb 2024 14:51:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=BD=91=E5=85=B3=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E9=85=8D=E7=BD=AE=E4=B8=ADknife4j=E7=9A=84=E8=81=9A?= =?UTF-8?q?=E5=90=88=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=A7=BB=E5=8A=A8=E5=88=B0?= =?UTF-8?q?nacos/gateway.yml=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gateway/src/main/resources/bootstrap.yml | 8 -------- nacos/gateway.yml | 10 +++++++++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gateway/src/main/resources/bootstrap.yml b/gateway/src/main/resources/bootstrap.yml index 5473216..074676e 100644 --- a/gateway/src/main/resources/bootstrap.yml +++ b/gateway/src/main/resources/bootstrap.yml @@ -34,14 +34,6 @@ management: endpoint: health: show-details: always -knife4j: - gateway: - strategy: discover - discover: - enabled: true - version : openapi3 - excluded-services: - - gateway # spring cloud alibaba --- diff --git a/nacos/gateway.yml b/nacos/gateway.yml index e2ed587..8848758 100644 --- a/nacos/gateway.yml +++ b/nacos/gateway.yml @@ -10,4 +10,12 @@ spring: allowCredentials: true default-filters: - DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials Access-Control-Expose-Headers, RETAIN_UNIQUE - - AddResponseHeader=Access-Control-Expose-Headers, Content-Disposition \ No newline at end of file + - AddResponseHeader=Access-Control-Expose-Headers, Content-Disposition +knife4j: + gateway: + strategy: discover + discover: + enabled: true + version : openapi3 + excluded-services: + - gateway \ No newline at end of file -- Gitee