zuul增加动态路由

This commit is contained in:
zlt
2019-08-28 17:38:26 +08:00
parent bd764da8c1
commit 6c4728930a
7 changed files with 292 additions and 5 deletions
@@ -0,0 +1,16 @@
{
"properties": [
{
"name": "zlt.gateway.dynamicRoute.enabled",
"description": "是否开启动态路由.",
"type": "java.lang.Boolean",
"defaultValue": false
},
{
"name": "zlt.gateway.dynamicRoute.dataType",
"description": "动态路由的数据类型.",
"type": "java.lang.String",
"defaultValue": "nacos"
}
]
}
@@ -26,10 +26,6 @@ spring:
groupId: DEFAULT_GROUP
rule-type: gw-api-group
security:
sessions: ALWAYS
zlt:
oauth2:
token:
@@ -39,7 +35,6 @@ zlt:
ignore:
# 忽略认证的地址
httpUrls: >
/api-user/test,
/api-uaa/oauth/**,
/api-uaa/validata/**,
/api-uaa/css/**,