application-dev.yml 6.0 KB

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