diff --git a/gateway/src/main/resources/bootstrap.yml b/gateway/src/main/resources/bootstrap.yml index 5473216481e3f857c663c8c52b1c62fea6dba5f5..074676edcae56d4e9005cee649824981a80f9c8c 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 e2ed5873d51d797d3120715e4d6363d3897042f7..884875831ed0a56f5edf28e241615c3bb9656e35 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