application-dev.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. server:
  2. port: 5858
  3. max-http-header-size: 10MB
  4. hystrix:
  5. threadpool:
  6. default:
  7. coreSize: 200 #并发执行的最大线程数,默认10
  8. maxQueueSize: 200 #BlockingQueue的最大队列数
  9. queueSizeRejectionThreshold: 50 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
  10. command:
  11. QcServiceClient#extract(QueryVo).execution.isolation.thread.timeoutInMilliseconds: 3600000
  12. default:
  13. execution:
  14. timeout:
  15. enabled: true
  16. isolation:
  17. strategy: SEMAPHORE
  18. semaphore:
  19. maxConcurrentRequests: 2000
  20. thread:
  21. timeoutInMilliseconds: 20000
  22. ribbon:
  23. ReadTimeout: 20000
  24. ConnectTimeout: 20000
  25. MaxAutoRetries: 0
  26. MaxAutoRetriesNextServer: 1
  27. feign:
  28. hystrix:
  29. enabled: true
  30. #开启Feign请求压缩
  31. compression:
  32. response:
  33. enabled: true
  34. httpclient:
  35. enabled: false
  36. okhttp:
  37. enabled: true
  38. max-connections: 1000 # 默认值
  39. max-connections-per-route: 250 # 默认值
  40. management:
  41. endpoints:
  42. web:
  43. exposure:
  44. include: bus-refresh,health,info,hystrix.stream
  45. cors:
  46. allowed-origins: "*"
  47. allowed-methods: "*"
  48. endpoint:
  49. health:
  50. show-details: always
  51. # 驱动配置信息
  52. spring:
  53. datasource:
  54. druid:
  55. driver-class-name: com.mysql.cj.jdbc.Driver
  56. platform: mysql
  57. url: jdbc:mysql://192.168.2.236:3306/qc?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  58. username: root
  59. password: lantone
  60. # 连接池的配置信息
  61. # 初始化大小,最小,最大
  62. initialSize: 5
  63. minIdle: 5
  64. maxActive: 20
  65. # 配置获取连接等待超时的时间
  66. maxWait: 60000
  67. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  68. timeBetweenEvictionRunsMillis: 60000
  69. # 配置一个连接在池中最小生存的时间,单位是毫秒
  70. minEvictableIdleTimeMillis: 300000
  71. validationQuery: SELECT 1 FROM DUAL
  72. testWhileIdle: true
  73. testOnBorrow: false
  74. testOnReturn: false
  75. # 打开PSCache,并且指定每个连接上PSCache的大小
  76. poolPreparedStatements: true
  77. maxPoolPreparedStatementPerConnectionSize: 20
  78. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  79. filters.commons-log.connection-logger-name: wall,log4j
  80. filter:
  81. stat:
  82. enabled: true
  83. mergeSql: true
  84. log-slow-sql: true
  85. slow-sql-millis: 2000
  86. #监控配置
  87. web-stat-filter:
  88. enabled: true
  89. url-pattern: /*
  90. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  91. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  92. stat-view-servlet:
  93. enabled: true
  94. url-pattern: /druid/*
  95. reset-enable: false
  96. login-username: root
  97. login-password: root
  98. jackson:
  99. date-format: yyyy-MM-dd HH:mm:ss
  100. time-zone: GMT+8
  101. #redis
  102. redis:
  103. database:
  104. cache: 8 # cache索引
  105. token: 8 # Token索引
  106. host: 192.168.2.236 #Redis服务器地址
  107. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  108. password: lantone # Redis服务器连接密码(默认为空)
  109. lettuce:
  110. pool:
  111. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  112. max-idle: 5 # 连接池中的最大空闲连接
  113. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  114. min-idle: 0 # 连接池中的最小空闲连接
  115. timeout: 20000 # 连接超时时间(毫秒)
  116. servlet:
  117. multipart:
  118. max-request-size: 2048MB
  119. #mybatis
  120. mybatis-plus:
  121. mapper-locations: classpath:/mapper/*Mapper.xml
  122. #实体扫描,多个package用逗号或者分号分隔
  123. typeAliasesPackage: com.diagbot.entity
  124. global-config:
  125. #刷新mapper 调试神器
  126. db-config:
  127. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  128. id-type: id_worker
  129. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  130. field-strategy: not_empty
  131. #驼峰下划线转换
  132. column-underline: true
  133. #数据库大写下划线转换
  134. #capital-mode: true
  135. #刷新mapper 调试神器
  136. refresh-mapper: true
  137. #逻辑删除配置
  138. logic-delete-value: 0
  139. logic-not-delete-value: 1
  140. #自定义填充策略接口实现
  141. #meta-object-handler: com.baomidou.springboot.xxx
  142. #自定义SQL注入器
  143. #sql-injector: com.baomidou.springboot.xxx
  144. configuration:
  145. map-underscore-to-camel-case: true
  146. cache-enabled: false
  147. io.github.lvyahui8.spring:
  148. base-packages: com.diagbot.aggregate
  149. thread-number: 12
  150. myhost: localhost
  151. oath.self.address: http://${myhost}:${server.port}
  152. qc.address: http://192.168.2.232:6009
  153. # 加解密开关
  154. encrypt:
  155. enable: true
  156. swagger:
  157. enable: true