#端口号 server: port: 8888 spring: application: name: zuul-service #服务名称 #路由规则: zuul: sensitiveHeaders: Cookie,Set-Cookie,Authorization routes: portal: path: /portal-service/** #访问路径:http:/localhost:8888/portal-service/portal/1 service-id: portal-service goods: path: /goods-service/** #http:/localhost:8888/goods-service/kwanGoodsInfo/1 service-id: goods-service host: connect-timeout-millis: 5000 #超时时间 prefix: /api #访问路径:http:/localhost:8888/api/portal-service/portal/1 http:/localhost:8888/api/goods-service/kwanGoodsInfo/1 retryable: true ignored-services: portal-service #感略某个服务名,禁止通过该服务名访可 # ignored-services: * #禁止通过所有的服务名访间 ignored-patterns: /**/feign/** #不给匹配此棋式的路径进行路由·那么你到时候访间不到 LogFilter: route: disable: true #用LogFilter过滤器 # semaphore: # max-semaphores: 100 # ribbon-isolation-strategy: thread # 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 #对同一实例重试的次数(单个集群节点服务重试的次数)