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

 

相关文章:

  • 2021-08-01
  • 2022-12-23
  • 2021-12-10
  • 2022-02-01
  • 2022-02-17
  • 2021-12-27
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-01-09
相关资源
相似解决方案