From 63dc394c546a851b5dd38f49238cddf4fcbae2f6 Mon Sep 17 00:00:00 2001 From: cuijiawang Date: Thu, 23 Oct 2025 09:44:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(gateway):=20=E6=B7=BB=E5=8A=A0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E7=BD=91=E5=85=B3=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 配置了服务发现定位器启用- 添加了指向wol-auth服务的路由 - 设置了路径匹配规则为/auth/** --- wol-gateway/src/main/resources/application-dev.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 wol-gateway/src/main/resources/application-dev.yml diff --git a/wol-gateway/src/main/resources/application-dev.yml b/wol-gateway/src/main/resources/application-dev.yml new file mode 100644 index 0000000..e0d5d0e --- /dev/null +++ b/wol-gateway/src/main/resources/application-dev.yml @@ -0,0 +1,11 @@ +spring: + cloud: + gateway: + discovery: + locator: + enabled: true + routes: + - id: wol-auth + uri: lb://wol-auth + predicates: + - Path=/auth/**