From a8981f5d8af47c0b27176682a2982e38513eed94 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Sun, 6 Jul 2025 21:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80=EF=BC=8C?= =?UTF-8?q?=E6=8D=A2=E6=88=90ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c110ae7..39c4ef5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -9,11 +9,12 @@ spring: gateway: discovery: locator: - enabled: true # 开启从注册中心动态获取路由 + enabled: false # 开启从注册中心动态获取路由 lower-case-service-id: true # 服务名转小写 routes: - id: sczx_user - uri: http://172.18.0.4:8081 +# uri: http://172.18.0.4:8081 + uri: lb://sczx_user predicates: - Path=/zc/user/** filters: