Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
9915b848
Commit
9915b848
authored
Mar 23, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级2.4.3后,微服务网关路由更新bug
parent
35c1214d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java
+2
-2
No files found.
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/src/main/java/org/jeecg/loader/DynamicRouteLoader.java
View file @
9915b848
...
@@ -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.JeecgRedisClie
nt
;
import
org.jeecg.common.
constant.CacheConsta
nt
;
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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment