techhero-framework-oauth-local.yml 1.28 KB
Newer Older
Administrator committed
1 2
spring:
  redis:
3 4
    database: 10
    host: test-env
Administrator committed
5 6 7 8 9 10 11 12 13 14 15 16 17
    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
18
    virtual-host: /framework
Administrator committed
19 20 21 22 23 24 25 26 27
    listener:
      simple:
        acknowledge-mode: manual  # 消息确认方式,其有三种配置方式,分别是none、manual(手动ack) 和auto(自动ack) 默认auto
    publisher-confirms: true #确认消息已发送到交换机(Exchange)
    publisher-returns: true #确认消息已发送到队列(Queue)

external:
  keys:
    - 7AC4F6926B1AFEA6D96B8DE863B17BAC
28 29
    
feign:
30 31
  hystrix:
    enabled: true
32 33
  client:
    config:
34
      default:
35 36
        connectTimeout: 10000    #连接超时时间
        readTimeut: 10000    #服务持续超时时间
37 38 39 40
  httpclient:
    enabled: false # 关闭 ApacheHttpClient
    max-connections: 50 # 连接池连接最大连接数(缺省值 200)
    time-to-live: 600 # 连接最大闲置时间,单位为秒,600秒==10分钟(缺省值为 900秒==15分钟)
41
  okhttp:
42
    enabled: true # 开启 okhttp
43 44
# yml
hystrix:
45 46 47 48 49
  command:
    default:
      execution:
        isolation:
          thread:
50
            timeoutInMilliseconds: 15000
51 52


53

Administrator committed
54