parent
93f4334eb6
commit
78c200ca61
@ -0,0 +1,4 @@
|
|||||||
|
/**
|
||||||
|
* 占位符
|
||||||
|
*/
|
||||||
|
package cn.iocoder.yudao.gateway.route;
|
||||||
@ -1,28 +1,14 @@
|
|||||||
spring:
|
spring:
|
||||||
application:
|
|
||||||
name: gateway-server
|
|
||||||
|
|
||||||
profiles:
|
|
||||||
active: local
|
|
||||||
|
|
||||||
cloud:
|
cloud:
|
||||||
# Spring Cloud Gateway 配置项,对应 GatewayProperties 类
|
# Spring Cloud Gateway 配置项,对应 GatewayProperties 类
|
||||||
gateway:
|
gateway:
|
||||||
# 路由配置项,对应 RouteDefinition 数组
|
# 路由配置项,对应 RouteDefinition 数组
|
||||||
routes:
|
routes:
|
||||||
- id: yudaoyuanma # 路由的编号
|
|
||||||
uri: https://www.iocoder.cn # 路由到的目标地址
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/blog
|
|
||||||
filters:
|
|
||||||
- StripPrefix=1
|
|
||||||
- id: oschina # 路由的编号
|
|
||||||
uri: https://www.oschina.net # 路由的目标地址
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/oschina
|
|
||||||
filters: # 过滤器,对请求进行拦截,实现自定义的功能,对应 FilterDefinition 数组
|
|
||||||
- StripPrefix=1
|
|
||||||
- id: system-admin-api # 路由的编号
|
- id: system-admin-api # 路由的编号
|
||||||
uri: lb://system-server
|
uri: lb://system-server
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
||||||
- Path=/admin-api/system/**
|
- Path=/admin-api/system/**
|
||||||
|
- id: system-app-api # 路由的编号
|
||||||
|
uri: lb://system-server
|
||||||
|
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
||||||
|
- Path=/app-api/system/**
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: gateway-server
|
||||||
|
|
||||||
|
profiles:
|
||||||
|
active: local
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: system-server
|
||||||
|
|
||||||
|
profiles:
|
||||||
|
active: local
|
||||||
Loading…
Reference in new issue