From 3b11905b557d3512e4d7d6adafa2dd3f6215e915 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Wed, 6 May 2026 13:42:07 +0800 Subject: [PATCH] =?UTF-8?q?ws=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 409c7a8..27f51e7 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -29,6 +29,12 @@ spring: - DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials # ---------- 路由配置 ---------- routes: + # WebSocket 路由:直接透传到后端 /notification/{id} + # 注意:必须放在 aida-back 之前,确保优先匹配 + - id: aida-back-websocket + uri: lb://aida-back + predicates: + - Path=/notification/** - id: aida-back uri: lb://aida-back predicates: @@ -138,7 +144,7 @@ gateway: - /aida/api/alipay-hk/trade/notify - /aida/api/stripe/trade/notify # Notification - - /aida/notification/** + - /notification/** logging: level: