feat(gateway): 添加开发环境网关路由配置
- 配置了服务发现定位器启用- 添加了指向wol-auth服务的路由 - 设置了路径匹配规则为/auth/**
This commit is contained in:
parent
f24137eb8f
commit
63dc394c54
11
wol-gateway/src/main/resources/application-dev.yml
Normal file
11
wol-gateway/src/main/resources/application-dev.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
spring:
|
||||||
|
cloud:
|
||||||
|
gateway:
|
||||||
|
discovery:
|
||||||
|
locator:
|
||||||
|
enabled: true
|
||||||
|
routes:
|
||||||
|
- id: wol-auth
|
||||||
|
uri: lb://wol-auth
|
||||||
|
predicates:
|
||||||
|
- Path=/auth/**
|
||||||
Loading…
x
Reference in New Issue
Block a user