From 2f06d36e97fd99a712b461bd336580bc734c30f3 Mon Sep 17 00:00:00 2001 From: fishtailfu Date: Thu, 15 May 2025 21:34:19 +0800 Subject: [PATCH] fix: add gateway context config example. --- .../pom.xml | 6 ------ .../pom.xml | 6 ------ spring-cloud-tencent-commons/pom.xml | 6 ++++++ .../src/main/resources/application-context.yml | 17 ++--------------- spring-cloud-tencent-rpc-enhancement/pom.xml | 6 ++++++ 5 files changed, 14 insertions(+), 27 deletions(-) diff --git a/spring-cloud-starter-tencent-polaris-config/pom.xml b/spring-cloud-starter-tencent-polaris-config/pom.xml index 5f1a7a46e..7caad9eb1 100644 --- a/spring-cloud-starter-tencent-polaris-config/pom.xml +++ b/spring-cloud-starter-tencent-polaris-config/pom.xml @@ -18,12 +18,6 @@ com.tencent.cloud spring-cloud-tencent-polaris-context - - - spring-security-crypto - org.springframework.security - - diff --git a/spring-cloud-starter-tencent-polaris-discovery/pom.xml b/spring-cloud-starter-tencent-polaris-discovery/pom.xml index d282dc512..c2c532ec6 100644 --- a/spring-cloud-starter-tencent-polaris-discovery/pom.xml +++ b/spring-cloud-starter-tencent-polaris-discovery/pom.xml @@ -23,12 +23,6 @@ com.tencent.cloud spring-cloud-tencent-rpc-enhancement - - - spring-security-crypto - org.springframework.security - - diff --git a/spring-cloud-tencent-commons/pom.xml b/spring-cloud-tencent-commons/pom.xml index 853a2ffce..cbaafc212 100644 --- a/spring-cloud-tencent-commons/pom.xml +++ b/spring-cloud-tencent-commons/pom.xml @@ -45,6 +45,12 @@ org.springframework.cloud spring-cloud-commons + + + spring-security-crypto + org.springframework.security + + diff --git a/spring-cloud-tencent-examples/quickstart-example/quickstart-gateway-service/src/main/resources/application-context.yml b/spring-cloud-tencent-examples/quickstart-example/quickstart-gateway-service/src/main/resources/application-context.yml index 8b9249d43..9f1cb89bb 100644 --- a/spring-cloud-tencent-examples/quickstart-example/quickstart-gateway-service/src/main/resources/application-context.yml +++ b/spring-cloud-tencent-examples/quickstart-example/quickstart-gateway-service/src/main/resources/application-context.yml @@ -18,7 +18,7 @@ spring: metadata: { } method: GET namespace: default - path: /quickstart/callee/{segment} + path: /quickstart/callee/info service: QuickstartCalleeService group-caller: predicate: @@ -35,17 +35,8 @@ spring: metadata: { } method: GET namespace: default - path: /** + path: /quickstart/** service: QuickstartCallerService - external-api: - predicate: - apiType: EXTERNAL - context: /external-api - routes: - - host: http://127.0.0.1:48082/ - metadata: { } - method: GET - path: /v3/api-docs routes: group-callee: filters: @@ -72,7 +63,3 @@ spring: - Path=/external-api/** uri: lb://external-api # do not use "_". -# -#http://localhost:48081/group-callee/default/QuickstartCalleeService/quickstart/callee/info -#http://localhost:48081/group-caller/default/QuickstartCallerService/quickstart/caller/info -#http://localhost:48081/external-api/v3/api-docs \ No newline at end of file diff --git a/spring-cloud-tencent-rpc-enhancement/pom.xml b/spring-cloud-tencent-rpc-enhancement/pom.xml index b48bb11ee..e25532100 100644 --- a/spring-cloud-tencent-rpc-enhancement/pom.xml +++ b/spring-cloud-tencent-rpc-enhancement/pom.xml @@ -39,6 +39,12 @@ org.springframework.cloud spring-cloud-loadbalancer + + + spring-security-crypto + org.springframework.security + +