From 8ecaaa9047368f836bd9973c116bb3f72d6dd968 Mon Sep 17 00:00:00 2001 From: smallchill Date: Tue, 29 Oct 2019 17:02:23 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E5=8A=A8=E6=80=81=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=97=B6=E5=8A=A0=E8=BD=BD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/dynamic/DynamicRouteServiceListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blade-gateway/src/main/java/org/springblade/gateway/dynamic/DynamicRouteServiceListener.java b/blade-gateway/src/main/java/org/springblade/gateway/dynamic/DynamicRouteServiceListener.java index e7996bc3b..f7108b3ff 100644 --- a/blade-gateway/src/main/java/org/springblade/gateway/dynamic/DynamicRouteServiceListener.java +++ b/blade-gateway/src/main/java/org/springblade/gateway/dynamic/DynamicRouteServiceListener.java @@ -77,6 +77,9 @@ public class DynamicRouteServiceListener { return null; } }); + String configInfo = configService.getConfig(dataId, group, 5000); + List routeDefinitions = JSON.parseArray(configInfo, RouteDefinition.class); + dynamicRouteService.updateList(routeDefinitions); } catch (NacosException ignored) { }