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) { }