1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| spring:
| application:
| name: system_gateway
| cloud:
| nacos:
| server-addr: http://175.27.187.84:8848 #配置Nacos地址
| username: nacos
| password: nacos
| discovery:
| server-addr: http://175.27.187.84:8848 #配置Nacos地址
| namespace: dmvisit
| username: nacos
| password: nacos
| gateway:
| discovery:
| locator:
| #开启从注册中心动态创建路由的功能,利用微服务名进行路由
| enabled: true
| #开启小写验证,默认feign根据服务名查找都是用的全大写
| lower-case-service-id: true
| routes:
| - id: meetingAdmin
| uri: lb://meetingAdmin
| # uri: http://localhost:10013
| # 断言,路径相匹配的进行路由
| predicates:
| - Path=/meetingAdmin/**
| filters:
| - StripPrefix=1
|
| - id: visitsAdmin
| uri: lb://visitsAdmin
| # uri: http://localhost:10028
| # 断言,路径相匹配的进行路由
| predicates:
| - Path=/visitsAdmin/**
| filters:
| - StripPrefix=1
| management:
| endpoints:
| web:
| exposure:
| include: "*"
|
|