cloud-service.yml 1.66 KB
server:
  port: 16500

spring:
  profiles: development

  redis:
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000

  redis1:
    database: 0
    host: 192.168.30.100
    port: 6379
    password: 123456

  redis2:
    database: 0
    host: 192.168.30.100
    port: 6380
    password: 123456


  jackson:
      time-zone: GMT+8
      date-format: yyyy-MM-dd HH:mm:ss
      deserialization.accept_empty_string_as_null_object: true

encrypt:
  failOnError: false

zuul:
  host:
    connect-timeout-millis: 500000
    socket-timeout-millis: 600000
  routes:
    gxbapp:
      path: /study/**
      url: http://192.168.30.250:30310/hybird-web

hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 60000

#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
ribbon:
  eureka:
    enabled: false
  UseIPAddrForServer: true
  ReadTimeout: 5000
  ConnectTimeout: 10000

eureka:
  instance:
    hostname: cloud-service
    perferIpAddress: true
    instance-id: ${spring.cloud.client.ipAddress}:${server.port}
    leaseRenewalIntervalInSeconds: 5
    leaseExpirationDurationInSeconds: 15
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/
    healthcheck:
      enabled: true

# 一些公共的常量配置