application.yml 3.42 KB
Newer Older
Administrator committed
1 2 3
server:
  tomcat:
    max-threads: 500 # Maximum amount of worker threads.
4
    min-spare-threads: 50 # Minimum amount of worker threads
Administrator committed
5 6 7 8 9
spring:
  cloud:
    config:
      override-none: true
      override-system-properties: false
10 11 12 13 14
  datasource:
    url: jdbc:mysql://119.96.87.17:30101/ksfw_dev?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true #jdbc:oracle:thin:@47.105.130.127:9638:orcl
    driver-class-name: com.mysql.jdbc.Driver #oracle.jdbc.OracleDriver
    username: ksfw_dev #ENC(25fc8c2d2cff6e142af36d4cd89f2bc0)
    password: a3Nmd19kZXY= #ENC(502aaeb4e3e6be41b742a448fab59864b4271effb5652fddf144e02b67d8ea04)
Administrator committed
15
    keep-alive-time: 30000
16 17 18
    hikari:
      minimum-idle: 1
      maximum-pool-size: 5
Administrator committed
19 20
      idle-timeout: 600000
      max-lifetime: 1500000
21
      connection-test-query: select 1 #select 1 from dual
Administrator committed
22
  redis:
23 24
    host: 192.168.50.159 #47.104.251.199
    port: 6379 #6942
25 26
    password: techhero #ENC(08db934a254e34b5366ff337b81532ec)
    database: 14
Administrator committed
27 28 29 30 31 32 33 34 35 36 37 38
    #host: 39.108.117.105
    #port: 6379
    #password: xh3.1415..
    #database: 2
    timeout: 10000
    lettuce:
      pool:
        max-idle: 4
        min-idle: 1
        max-active: 5
        max-wait: 10000
  rabbitmq:
Administrator committed
39 40 41 42 43
    host: 119.96.87.17
    port: 5672
    username: rabbit
    password: rabbit-techhero
    virtual-host: /local
Administrator committed
44 45 46 47 48 49 50 51 52 53
  servlet:
    multipart:
      max-file-size: 1000MB
      max-request-size: 1000MB
redis:
  cache:
    expiration: 3601
ribbon:
  eager-load:
    enabled: true
54
    clients: techhero-auth-service,techhero-admin-service,techhero-ksfw-service,techhero-search-service
Administrator committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
  Httpclient:
    enabled: true
  OkHttp:
    enabled: false
  ReadTimeout: 60000
  ConnectTimeout: 30000
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: false
  httpclient:
    enabled: true
  client:
    config:
      feignName:
        readTimeout: 60000
        connectTimeout: 30000
  compression:
    request:
      enabled: false
    response:
      enabled: false
78 79 80
zuul:
 semaphore:
  max-semaphores: 5000 #可根据系统需要支持的并发数适当增加信号量的大小
Administrator committed
81 82 83
hystrix:
  threadpool:
    default:
84
      coreSize: 1000
Administrator committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 240000 # 设置熔断的时间,建议在网关和微服务都设置,否则会有一个默认值生效
#关闭验证
management:
  metrics:
    web:
      server:
        auto-time-requests: false
mybatis-plus:
  mapper-locations: classpath:/mapper/**/*Mapper.xml  #XML扫描
  typeAliasesPackage: com.techhero.**.model.entity  #实体扫描 多个package用逗号或者分号分隔
  global-config:
    refresh: true
    db-config: 
      refresh-mapper: true  #刷新mapper 调试神器
  configuration:
    map-underscore-to-camel-case: true  #开启驼峰命名
    cache-enabled: false
    jdbc-type-for-null: 'null'  #配置JdbcTypeForNull oracle数据库必须配置
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
jasypt:   # 配置文件加密
  encryptor:
    bean: customStringEncryptor    
login: #登录校验手机验证码开关
115 116 117
  enabled: 'false'
wx:
  miniapp:
118
    configs:
Administrator committed
119 120
        - appid: wxb0e2fbdff999cff8
          secret: 9c611afe0b199f67e433d7fbb2ec2ae3
Administrator committed
121 122
          httpProxyHost: 192.168.50.133
          httpProxyPort: 10320
123 124 125
gx:
  url: http://10.16.13.39:8011/sendSmsManager/sendSms
  systemcode: zytbfz