spring:
  redis:
    database: 10
    host: test-env
    port: 6379
    password: techhero
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
    host: dev-env
    port: 5672
    username: techhero
    password: techhero
    virtual-host: /framework
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)

external:
  keys:
    - 7AC4F6926B1AFEA6D96B8DE863B17BAC
    
feign:
  hystrix:
    enabled: true
  client:
    config:
      default:
        connectTimeout: 10000    #连接超时时间
        readTimeut: 10000    #服务持续超时时间
  httpclient:
    enabled: false # 关闭 ApacheHttpClient
    max-connections: 50 # 连接池连接最大连接数(缺省值 200)
    time-to-live: 600 # 连接最大闲置时间,单位为秒,600秒==10分钟(缺省值为 900秒==15分钟)
  okhttp:
    enabled: true # 开启 okhttp
# yml
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 15000