application.yaml 556 字节
Newer Older
Q
qinyingjie 已提交
1 2 3 4 5 6 7 8
#端口号
server:
  port: 8888

spring:
  application:
    name: zuul-service #服务名称

Q
qinyingjie 已提交
9 10 11 12 13 14 15 16 17 18 19
#路由规则:
zuul:
  sensitiveHeaders: Cookie,Set-Cookie,Authorization
  routes:
    api-portal:
      path: /portal-service/**  #访问路径:http:/localhost:5001/hello-service/hello
      serviceId: portal-service
    api-goods:
      path: /goods-service/**
      serviceld: goods-service

Q
qinyingjie 已提交
20 21 22 23 24
#服务提供者
eureka:
  client:
    service-url:
      defaultZone: http://eureka8767:8767/eureka/,http://eureka8768:8768/eureka/,http://eureka8769:8769/eureka/