application-dev.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. default:
  12. execution:
  13. timeout:
  14. enabled: true
  15. isolation:
  16. strategy: SEMAPHORE
  17. semaphore:
  18. maxConcurrentRequests: 2000
  19. thread:
  20. timeoutInMilliseconds: 20000
  21. feign:
  22. hystrix:
  23. enabled: true
  24. #开启Feign请求压缩
  25. compression:
  26. response:
  27. enabled: true
  28. httpclient:
  29. enabled: false
  30. okhttp:
  31. enabled: true
  32. max-connections: 1000 # 默认值
  33. max-connections-per-route: 250 # 默认值
  34. # 驱动配置信息
  35. spring:
  36. datasource:
  37. dynamic:
  38. primary: med
  39. druid:
  40. # 连接池的配置信息
  41. # 初始化大小,最小,最大
  42. initialSize: 5
  43. minIdle: 5
  44. maxActive: 20
  45. # 配置获取连接等待超时的时间
  46. maxWait: 60000
  47. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  48. timeBetweenEvictionRunsMillis: 60000
  49. # 配置一个连接在池中最小生存的时间,单位是毫秒
  50. minEvictableIdleTimeMillis: 300000
  51. validationQuery: SELECT 1 FROM DUAL
  52. testWhileIdle: true
  53. testOnBorrow: false
  54. testOnReturn: false
  55. # 打开PSCache,并且指定每个连接上PSCache的大小
  56. poolPreparedStatements: true
  57. maxPoolPreparedStatementPerConnectionSize: 20
  58. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  59. filters.commons-log.connection-logger-name: wall,log4j
  60. share-prepared-statements: true
  61. filter:
  62. stat:
  63. enabled: true
  64. mergeSql: true
  65. log-slow-sql: true
  66. slow-sql-millis: 2000
  67. #监控配置
  68. web-stat-filter:
  69. enabled: true
  70. url-pattern: /*
  71. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  72. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  73. stat-view-servlet:
  74. enabled: true
  75. url-pattern: /druid/*
  76. reset-enable: false
  77. login-username: root
  78. login-password: root
  79. # 数据库配置
  80. datasource:
  81. cdss:
  82. driver-class-name: com.mysql.cj.jdbc.Driver
  83. platform: mysql
  84. url: jdbc:mysql://192.168.2.236:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  85. username: root
  86. password: lantone
  87. druid:
  88. initial-size: 5
  89. med:
  90. driver-class-name: com.mysql.cj.jdbc.Driver
  91. platform: mysql
  92. url: jdbc:mysql://192.168.2.236:3306/med_2021?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  93. username: root
  94. password: lantone
  95. druid:
  96. initial-size: 5
  97. jackson:
  98. date-format: yyyy-MM-dd HH:mm:ss
  99. time-zone: GMT+8
  100. #redis
  101. redis:
  102. database:
  103. cache: 11 # cache索引
  104. similar: 11 # similar索引
  105. host: 192.168.2.236 #Redis服务器地址
  106. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  107. password: lantone # Redis服务器连接密码(默认为空)
  108. lettuce:
  109. pool:
  110. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  111. max-idle: 5 # 连接池中的最大空闲连接
  112. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  113. min-idle: 0 # 连接池中的最小空闲连接
  114. timeout: 20000 # 连接超时时间(毫秒)
  115. servlet:
  116. multipart:
  117. max-request-size: 2048MB
  118. maxFileSize: 50MB
  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: 200
  150. swagger:
  151. enable: true
  152. CRF:
  153. url: http://192.168.2.234:3456
  154. # 没有用
  155. ChiefPresentSimilarity:
  156. url: http://192.168.2.234:3456
  157. StandConvert:
  158. url: http://192.168.2.234:23232
  159. rate: 0.9
  160. StandConvertNew:
  161. url: http://192.168.3.150:9205
  162. rate: 0.9
  163. IcssPush:
  164. url: http://192.168.2.234:5008
  165. # 新版推送
  166. PushNew:
  167. url: http://192.168.2.234:9210
  168. debugFlag: true