From 9915b84808d8a62048e31a53097fa926ec0cb411 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Tue, 23 Mar 2021 15:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A72.4.3=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=BE=AE=E6=9C=8D=E5=8A=A1=E7=BD=91=E5=85=B3=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/loader/DynamicRouteLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java index 01d3e856..e6cc048f 100644 --- a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java @@ -11,7 +11,7 @@ import com.alibaba.nacos.api.exception.NacosException; import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; -import org.jeecg.common.modules.redis.client.JeecgRedisClient; +import org.jeecg.common.constant.CacheConstant; import org.jeecg.common.util.RedisUtil; import org.jeecg.config.GatewayRoutersConfiguration; import org.jeecg.config.RouterDataType; @@ -133,7 +133,7 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware { if (configService == null) { log.warn("initConfigService fail"); } - Object configInfo = redisUtil.get("gateway_routes"); + Object configInfo = redisUtil.get(CacheConstant.GATEWAY_ROUTES); if (ObjectUtil.isNotEmpty(configInfo)) { log.info("获取网关当前配置:\r\n{}", configInfo); JSONArray array = JSON.parseArray(configInfo.toString()); -- GitLab