Commit fadd87d08a794fc0b354fa7ba43cddf03c211cb5
1 parent
9c5c01d8
升级2.4.3后,微服务网关路由更新issues/I3CNED
Showing
1 changed file
with
2 additions
and
2 deletions
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; | @@ -11,7 +11,7 @@ import com.alibaba.nacos.api.exception.NacosException; | ||
11 | import com.google.common.collect.Lists; | 11 | import com.google.common.collect.Lists; |
12 | import lombok.extern.slf4j.Slf4j; | 12 | import lombok.extern.slf4j.Slf4j; |
13 | import org.apache.commons.lang.StringUtils; | 13 | import org.apache.commons.lang.StringUtils; |
14 | -import org.jeecg.common.modules.redis.client.JeecgRedisClient; | 14 | +import org.jeecg.common.constant.CacheConstant; |
15 | import org.jeecg.common.util.RedisUtil; | 15 | import org.jeecg.common.util.RedisUtil; |
16 | import org.jeecg.config.GatewayRoutersConfiguration; | 16 | import org.jeecg.config.GatewayRoutersConfiguration; |
17 | import org.jeecg.config.RouterDataType; | 17 | import org.jeecg.config.RouterDataType; |
@@ -133,7 +133,7 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware { | @@ -133,7 +133,7 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware { | ||
133 | if (configService == null) { | 133 | if (configService == null) { |
134 | log.warn("initConfigService fail"); | 134 | log.warn("initConfigService fail"); |
135 | } | 135 | } |
136 | - Object configInfo = redisUtil.get("gateway_routes"); | 136 | + Object configInfo = redisUtil.get(CacheConstant.GATEWAY_ROUTES); |
137 | if (ObjectUtil.isNotEmpty(configInfo)) { | 137 | if (ObjectUtil.isNotEmpty(configInfo)) { |
138 | log.info("获取网关当前配置:\r\n{}", configInfo); | 138 | log.info("获取网关当前配置:\r\n{}", configInfo); |
139 | JSONArray array = JSON.parseArray(configInfo.toString()); | 139 | JSONArray array = JSON.parseArray(configInfo.toString()); |