application-test.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. server:
  2. port: 7010
  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. CRFServiceClient#getAnnotation(CRFVo).execution.isolation.thread.timeoutInMilliseconds: 3000 #远程调用、CRF接口时间调整
  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. # 驱动配置信息
  41. spring:
  42. datasource:
  43. dynamic:
  44. primary: med
  45. druid:
  46. # 连接池的配置信息
  47. # 初始化大小,最小,最大
  48. initialSize: 5
  49. minIdle: 5
  50. maxActive: 20
  51. # 配置获取连接等待超时的时间
  52. maxWait: 60000
  53. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  54. timeBetweenEvictionRunsMillis: 60000
  55. # 配置一个连接在池中最小生存的时间,单位是毫秒
  56. minEvictableIdleTimeMillis: 300000
  57. validationQuery: SELECT 1 FROM DUAL
  58. testWhileIdle: true
  59. testOnBorrow: false
  60. testOnReturn: false
  61. # 打开PSCache,并且指定每个连接上PSCache的大小
  62. poolPreparedStatements: false
  63. maxPoolPreparedStatementPerConnectionSize: 20
  64. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  65. filters.commons-log.connection-logger-name: wall,log4j
  66. share-prepared-statements: false
  67. filter:
  68. stat:
  69. enabled: true
  70. mergeSql: true
  71. log-slow-sql: true
  72. slow-sql-millis: 2000
  73. #监控配置
  74. web-stat-filter:
  75. enabled: true
  76. url-pattern: /*
  77. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  78. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  79. stat-view-servlet:
  80. enabled: true
  81. url-pattern: /druid/*
  82. reset-enable: false
  83. login-username: root
  84. login-password: root
  85. # 数据库配置
  86. datasource:
  87. cdss:
  88. driver-class-name: com.mysql.cj.jdbc.Driver
  89. platform: mysql
  90. url: jdbc:mysql://192.168.2.241:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  91. username: root
  92. password: lantone
  93. druid:
  94. initial-size: 5
  95. med:
  96. driver-class-name: com.mysql.cj.jdbc.Driver
  97. platform: mysql
  98. url: jdbc:mysql://192.168.2.241:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  99. username: root
  100. password: lantone
  101. druid:
  102. initial-size: 5
  103. jackson:
  104. date-format: yyyy-MM-dd HH:mm:ss
  105. time-zone: GMT+8
  106. #redis
  107. redis:
  108. database:
  109. cache: 11 # cache索引
  110. similar: 11 # similar索引
  111. host: 192.168.2.241 #Redis服务器地址
  112. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  113. password: lantone # Redis服务器连接密码(默认为空)
  114. lettuce:
  115. pool:
  116. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  117. max-idle: 5 # 连接池中的最大空闲连接
  118. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  119. min-idle: 0 # 连接池中的最小空闲连接
  120. timeout: 200000 # 连接超时时间(毫秒)
  121. servlet:
  122. multipart:
  123. max-request-size: 2048MB
  124. maxFileSize: 50MB
  125. #mybatis
  126. mybatis-plus:
  127. mapper-locations: classpath:/mapper/*Mapper.xml
  128. #实体扫描,多个package用逗号或者分号分隔
  129. typeAliasesPackage: com.diagbot.entity
  130. global-config:
  131. #刷新mapper 调试神器
  132. db-config:
  133. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  134. id-type: id_worker
  135. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  136. field-strategy: not_empty
  137. #驼峰下划线转换
  138. column-underline: true
  139. #数据库大写下划线转换
  140. #capital-mode: true
  141. #刷新mapper 调试神器
  142. refresh-mapper: true
  143. #逻辑删除配置
  144. logic-delete-value: 0
  145. logic-not-delete-value: 1
  146. #自定义填充策略接口实现
  147. #meta-object-handler: com.baomidou.springboot.xxx
  148. #自定义SQL注入器
  149. #sql-injector: com.baomidou.springboot.xxx
  150. configuration:
  151. map-underscore-to-camel-case: true
  152. cache-enabled: false
  153. io.github.lvyahui8.spring:
  154. base-packages: com.diagbot.aggregate
  155. thread-number: 200
  156. swagger:
  157. enable: true
  158. CRF:
  159. url: http://192.168.2.234:3456
  160. StandConvert:
  161. url: http://192.168.2.234:23232
  162. rate: 0.9
  163. StandConvertNew:
  164. url: http://192.168.3.150:7000
  165. rate: 0.9
  166. IcssPush:
  167. url: http://192.168.2.241:5008
  168. # 新版推送:9212【本地,236】,9211【241】,9210【121,122】
  169. PushNew:
  170. url: http://192.168.2.234:9211
  171. debugFlag: true