application-local.yml 1.68 KB
Newer Older
Administrator committed
1
spring:
2
  servlet:
Administrator committed
3 4 5
    multipart:
      enabled: true
      max-file-size: 300MB
6
      max-request-size: 300MB
7 8 9 10 11 12 13 14 15 16 17 18
  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)

19 20 21 22 23 24 25 26 27 28 29
      
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
30 31
        connectTimeout: 10000
        readTimeout: 10000
32 33 34 35 36
  compression:
    request:
      enabled: true
    response:
      enabled: true
37

38 39 40 41 42 43 44 45 46
# yml
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 15000

47
ribbon:
48 49
  ReadTimeout: 10000
  ConnectTimeout: 10000
50
  eureka:
51
    enabled: true
52
  httpclient:
53
    enabled: false
54
  okhttp:
55
    enabled: true
56 57
  eager-load:
    enabled: true
58
    clients: techhero-framework-config,techhero-framework-eureka,techhero-framework-auth,techhero-platform-exam,techhero-platform-system,techhero-business-track,techhero-business-command,techhero-business-transdata,techhero-business-datagovern,techhero-business-visualization,techhero-framework-config
59

60

61 62 63 64
tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
65 66
  accept-count: 10

67
token:
68 69
    refreshTokenValiditySeconds:  7200
    accessTokenValiditySeconds:   3600
70
    remainingTime:  3480
71 72 73 74
# ignore:
#   urls:
#       - /config/bus/refresh
#       - /loginOut