zuul相关配置

[复制链接]
发表于 2024-10-29 10:11:55 | 显示全部楼层 |阅读模式
server: 
  port: 8088
management:
  health:
    defaults:
      enabled: false
swagger:
    enabled: true
zuul:
  #ignore-local-service: false  
  routes:
    fin-service:
      path: /*/**
      serviceId: xxxx
    doc-service:
      path: /**/**
      serviceId: xxxx
    ent-zuul:
      path: /xxx/**
      serviceId: xxxxx
  host:
    connect-timeout-millis: 60000
    socket-timeout-millis: 60000
feign: 
  httpclient: 
    enabled: true
  compression: 
    request: 
      enabled: true
      mime-type: text/xml,application/json
      min-request-size: 2048
    response: 
      enabled: true
ribbon:
  ConnectTimeout: 60000 # 连接超时时间(ms)
  ReadTimeout: 60000 # 通信超时时间(ms)0
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMillisecond: 50000 # 熔断超时时长:60000ms

GMT+8, 2025-4-21 01:30 , Processed in 0.067619 second(s), 34 queries Archiver|手机版|小黑屋|Attic ( 京ICP备2020048627号 )

快速回复 返回顶部 返回列表