application.yml 3.25 KB
Newer Older
Administrator committed
1 2 3 4 5 6 7 8 9 10
server:
  tomcat:
    max-threads: 500 # Maximum amount of worker threads.
    min-spare-threads: 50 # Minimum amount of worker threads
spring:
  cloud:
    config:
      override-none: true
      override-system-properties: false
  datasource:
11 12 13 14 15 16 17
    dynamic:
      primary: master
      strict: false
      datasource:
        master:
          url: jdbc:dm://localhost:5236/TECHHERO_TRUSTED_TRANSCRIPT?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
          username: SYSDBA
18
          password: SYSDBA
19 20 21 22 23 24
          driver-class-name: dm.jdbc.driver.DmDriver
          hikari:
            minimum-idle: 1
            maximum-pool-size: 5
            connection-test-query: select 1 from dual
        slave_1:
25
          url: jdbc:oracle:thin:@119.96.99.9:30110:orcl
26 27 28
          username: jcsjv2
          password: jcsjv2
          driver-class-name: oracle.jdbc.OracleDriver
Administrator committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  redis:
    host: 119.96.87.17 #47.104.251.199
    port: 6379 #6942
    password: techhero #ENC(08db934a254e34b5366ff337b81532ec)
    database: 7
    timeout: 10000
    lettuce:
      pool:
        max-idle: 4
        min-idle: 1
        max-active: 5
        max-wait: 10000
  redisson:  
    address: redis://119.96.87.17:6379
    password: techhero
  rabbitmq:
45 46 47 48
    host: 47.121.142.86
    port: 5672
    username: rabbitmq
    password: rabbitmq
Administrator committed
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 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
    virtual-host: demo
  servlet:
    multipart:
      max-file-size: 1000MB
      max-request-size: 1000MB
redis:
  cache:
    expiration: 3601
ribbon:
  eager-load:
    enabled: true
    clients: techhero-auth-service,techhero-admin-service
  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
hystrix:
  threadpool:
    default:
      coreSize: 500
      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: #登录校验手机验证码开关
  enabled: 'false'
  
paper:
  password: JKTest01
  
123 124 125 126 127
minio:
  host: http://47.121.142.86:9000
  url: ${minio.host}/${minio.bucket}/
  access-key: minioadmin
  secret-key: minioadmin
128 129
  bucket: public
  filePath: :47.121.142.86:9000