spring
cloud:
gateway:
discovery:#根据服务名动态路由
locator:
lowerCaseServiceId: true #是否根据服务名访问
enabled: true #是否将服务名转为小写
举例:
http://xxxxx:8020/system/dept/list
会自动转移到system服务上相当于配置了
- id: system
uri: lb://system
predicates:
- Path=/system/**