application-local.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. 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://10.58.4.153:3306/cdss?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: 15 # cache索引
  105. token: 15 # Token索引
  106. mr: 15 # 病历索引
  107. host: 10.58.4.152 #Redis服务器地址
  108. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  109. password: lantone # Redis服务器连接密码(默认为空)
  110. lettuce:
  111. pool:
  112. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  113. max-idle: 5 # 连接池中的最大空闲连接
  114. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  115. min-idle: 0 # 连接池中的最小空闲连接
  116. timeout: 20000 # 连接超时时间(毫秒)
  117. servlet:
  118. multipart:
  119. max-request-size: 2048MB
  120. #mybatis
  121. mybatis-plus:
  122. mapper-locations: classpath:/mapper/*Mapper.xml
  123. #实体扫描,多个package用逗号或者分号分隔
  124. typeAliasesPackage: com.diagbot.entity
  125. global-config:
  126. #刷新mapper 调试神器
  127. db-config:
  128. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  129. id-type: id_worker
  130. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  131. field-strategy: not_empty
  132. #驼峰下划线转换
  133. column-underline: true
  134. #数据库大写下划线转换
  135. #capital-mode: true
  136. #刷新mapper 调试神器
  137. refresh-mapper: true
  138. #逻辑删除配置
  139. logic-delete-value: 0
  140. logic-not-delete-value: 1
  141. #自定义填充策略接口实现
  142. #meta-object-handler: com.baomidou.springboot.xxx
  143. #自定义SQL注入器
  144. #sql-injector: com.baomidou.springboot.xxx
  145. configuration:
  146. map-underscore-to-camel-case: true
  147. cache-enabled: false
  148. io.github.lvyahui8.spring:
  149. base-packages: com.diagbot.aggregate
  150. thread-number: 200
  151. myhost: localhost
  152. oath.self.address: http://${myhost}:${server.port}
  153. swagger:
  154. enable: true
  155. #Token鉴权
  156. tokenAuth:
  157. enable: false
  158. #图片服务器
  159. imageUrl:
  160. prefix: http://10.58.4.152:82
  161. #病历质控地址
  162. mrqc:
  163. url: http://10.58.4.152:5858
  164. #CDSS核心地址
  165. cdss-core:
  166. url: http://10.58.4.152:7010
  167. #页面推送模式地址配置
  168. data-page:
  169. url: http://10.58.4.152:5654