From 0488bb535fd8683562049f77b49399cb0f276430 Mon Sep 17 00:00:00 2001 From: jieyuu <645634619@qq.com> Date: Sat, 9 Nov 2024 21:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=91=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xdclass-gateway/pom.xml | 15 ++++++++++----- .../src/main/resources/application.yml | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/xdclass-gateway/pom.xml b/xdclass-gateway/pom.xml index e38e9df..b554e08 100644 --- a/xdclass-gateway/pom.xml +++ b/xdclass-gateway/pom.xml @@ -16,16 +16,21 @@ org.springframework.cloud spring-cloud-starter-gateway - - - - - + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + com.alibaba.cloud spring-cloud-starter-alibaba-nacos-config + + + org.springframework.cloud + spring-cloud-loadbalancer + diff --git a/xdclass-gateway/src/main/resources/application.yml b/xdclass-gateway/src/main/resources/application.yml index be9de93..40ecc55 100644 --- a/xdclass-gateway/src/main/resources/application.yml +++ b/xdclass-gateway/src/main/resources/application.yml @@ -7,9 +7,10 @@ spring: cloud: #注册中心地址 nacos: - discoveru: + discovery: server-addr: 8.134.32.140:8848 + gateway: routes: #数组形式 - id: product-service #商品服务 路由唯一标识