团队协作之动态网关问题

Blade 未结 1 1343
zhangyijun
zhangyijun 剑童 2020-08-15 16:53

一、该问题的重现步骤是什么?

  1. 团队协作之动态网关,如果直接从网关的项目接口,是没有问题的。走的是本机的服务,但是存在Feign调用的情况下,还是调不到本机的服务啊,怎么处理?

  2. 网关,desk,auth,user,system,gateway的启动类都加上了“-Chill”,然后启动了。

  3. 配置如下:

[

{

"id": "desk-route",

"order": 0,

"predicates": [

{

"name": "Path",

"args": {

"pattern": "/blade-desk/**"

}

}

],

"filters": [],

"uri": "lb://blade-desk-Chill"

},

{

"id": "auth-route",

"order": 0,

"predicates": [

{

"name": "Path",

"args": {

"pattern": "/blade-auth/**"

}

}

],

"filters": [],

"uri": "lb://blade-auth-Chill"

},

{

"id": "user-route",

"order": 0,

"predicates": [

{

"name": "Path",

"args": {

"pattern": "/blade-user/**"

}

}

],

"filters": [],

"uri": "lb://blade-user-Chill"

},

{

"id": "system-route",

"order": 0,

"predicates": [

{

"name": "Path",

"args": {

"pattern": "/blade-system/**"

}

}

],

"filters": [],

"uri": "lb://blade-system-Chill"

},

{

"id": "example-route",

"order": 0,

"predicates": [{

"name": "Path",

"args": {

"pattern": "/example"

}

}],

"filters": [],

"uri": "http://www.example.com"

}

]




1条回答
提交回复