application-dev.yml 1.98 KB
Newer Older
1 2 3
#加密配置
jasypt:
  encryptor:
4
    password: techheroshop
5 6
spring:
  redis:
7
    #remote: false        #cachecloud 获取
8
    #host: 119.96.87.17
9
    host: 127.0.0.1
10
    hostName: 119.96.87.17 #183.95.190.112
11 12 13
    port: 23751
    #password: fcd258Kf
    password: heroshop
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
    host: 119.96.87.17
    port: 5672
    username: rabbit
    password: rabbit-techhero
    listener:
      simple:
        acknowledge-mode: manual
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
        
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
47
    clients: techhero-authshop,techheroshop-project-interface
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
  ReadTimeout: 10000
  ConnectTimeout: 10000
  
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 10000
        readTimeout: 10000
  compression:
    request:
      enabled: true
    response:
      enabled: true
      
hystrix:
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 40000
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
tomcat: 
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

management:
  endpoints:
    web:
      exposure:
        include: '*'
  endpoint:
    health:
      show-details: ALWAYS