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: "*"