zuul超时及重试配置1
eureka: client: register-with-eureka: true serviceUrl: defaultZone: http://localhost:8761/eureka/ server: port: 8765 spring: application: name: gateway-zuul zuul: retryable: true routes: users: path: /ecom/** serviceId: service-hi #timeout config hystrix: command: default: execution: timeout: enabled: true isolation: thread: timeoutInMilliseconds: 80000 service-hi: ribbon: ReadTimeout: 1000 //如果持续熔断,不能重试,则超时时间设的更小 SocketTimeout: 1000 ConnectTimeout: 1000 MaxAutoRetries: 0 MaxAutoRetriesNextServer: 1 eureka: enabled: true