#端口号 server: port: 8888 spring: application: name: zuul-service #服务名称 #路由规则: zuul: sensitiveHeaders: Cookie,Set-Cookie,Authorization routes: api-portal: path: /portal-service/** #访问路径:http:/localhost:8888/portal-service/portal/1 serviceId: portal-service api-goods: path: /goods-service/** serviceld: goods-service url: http://localhost:9100/,http://localhost:9200/,http://localhost:9300/ retryable: true semaphore: max-semaphores: 100 ribbon-isolation-strategy: thread # prefix: /api strip-prefix: false #服务提供者 eureka: client: service-url: defaultZone: http://eureka8767:8767/eureka/,http://eureka8768:8768/eureka/,http://eureka8769:8769/eureka/ ribbon: ConnectTimeout: 250 #连接超时时间(ms),默认值为250ms ReadTimeout: 2000 #通信超时时间(ms),默认值为2000ms MaxAutoRetriesNextServer: 0 #对同一服务不同实例重试次数(同一服务下集群个数的重试次数) MaxAutoRetries: 2 #对同一实例重试的次数(单个集群节点服务重试的次数)