提交 9915b848 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

升级2.4.3后,微服务网关路由更新bug

上级 35c1214d
...@@ -11,7 +11,7 @@ import com.alibaba.nacos.api.exception.NacosException; ...@@ -11,7 +11,7 @@ import com.alibaba.nacos.api.exception.NacosException;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; 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.common.util.RedisUtil;
import org.jeecg.config.GatewayRoutersConfiguration; import org.jeecg.config.GatewayRoutersConfiguration;
import org.jeecg.config.RouterDataType; import org.jeecg.config.RouterDataType;
...@@ -133,7 +133,7 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware { ...@@ -133,7 +133,7 @@ public class DynamicRouteLoader implements ApplicationEventPublisherAware {
if (configService == null) { if (configService == null) {
log.warn("initConfigService fail"); log.warn("initConfigService fail");
} }
Object configInfo = redisUtil.get("gateway_routes"); Object configInfo = redisUtil.get(CacheConstant.GATEWAY_ROUTES);
if (ObjectUtil.isNotEmpty(configInfo)) { if (ObjectUtil.isNotEmpty(configInfo)) {
log.info("获取网关当前配置:\r\n{}", configInfo); log.info("获取网关当前配置:\r\n{}", configInfo);
JSONArray array = JSON.parseArray(configInfo.toString()); JSONArray array = JSON.parseArray(configInfo.toString());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册