application-local.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. <<<<<<< Updated upstream
  58. url: jdbc:mysql://192.168.2.122:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  59. =======
  60. url: jdbc:mysql://10.58.4.153:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true
  61. >>>>>>> Stashed changes
  62. username: root
  63. password: lantone
  64. # 连接池的配置信息
  65. # 初始化大小,最小,最大
  66. initialSize: 5
  67. minIdle: 5
  68. maxActive: 20
  69. # 配置获取连接等待超时的时间
  70. maxWait: 60000
  71. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  72. timeBetweenEvictionRunsMillis: 60000
  73. # 配置一个连接在池中最小生存的时间,单位是毫秒
  74. minEvictableIdleTimeMillis: 300000
  75. validationQuery: SELECT 1 FROM DUAL
  76. testWhileIdle: true
  77. testOnBorrow: false
  78. testOnReturn: false
  79. # 打开PSCache,并且指定每个连接上PSCache的大小
  80. poolPreparedStatements: true
  81. maxPoolPreparedStatementPerConnectionSize: 20
  82. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  83. filters.commons-log.connection-logger-name: wall,log4j
  84. filter:
  85. stat:
  86. enabled: true
  87. mergeSql: true
  88. log-slow-sql: true
  89. slow-sql-millis: 2000
  90. #监控配置
  91. web-stat-filter:
  92. enabled: true
  93. url-pattern: /*
  94. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  95. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  96. stat-view-servlet:
  97. enabled: true
  98. url-pattern: /druid/*
  99. reset-enable: false
  100. login-username: root
  101. login-password: root
  102. jackson:
  103. date-format: yyyy-MM-dd HH:mm:ss
  104. time-zone: GMT+8
  105. #redis
  106. redis:
  107. database:
  108. cache: 15 # cache索引
  109. token: 15 # Token索引
  110. mr: 15 # 病历索引
  111. <<<<<<< Updated upstream
  112. host: 192.168.2.236 #Redis服务器地址
  113. =======
  114. host: 10.58.4.152 #Redis服务器地址
  115. >>>>>>> Stashed changes
  116. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  117. password: lantone # Redis服务器连接密码(默认为空)
  118. lettuce:
  119. pool:
  120. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  121. max-idle: 5 # 连接池中的最大空闲连接
  122. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  123. min-idle: 0 # 连接池中的最小空闲连接
  124. timeout: 20000 # 连接超时时间(毫秒)
  125. servlet:
  126. multipart:
  127. max-request-size: 2048MB
  128. #mybatis
  129. mybatis-plus:
  130. mapper-locations: classpath:/mapper/*Mapper.xml
  131. #实体扫描,多个package用逗号或者分号分隔
  132. typeAliasesPackage: com.diagbot.entity
  133. global-config:
  134. #刷新mapper 调试神器
  135. db-config:
  136. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  137. id-type: id_worker
  138. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  139. field-strategy: not_empty
  140. #驼峰下划线转换
  141. column-underline: true
  142. #数据库大写下划线转换
  143. #capital-mode: true
  144. #刷新mapper 调试神器
  145. refresh-mapper: true
  146. #逻辑删除配置
  147. logic-delete-value: 0
  148. logic-not-delete-value: 1
  149. #自定义填充策略接口实现
  150. #meta-object-handler: com.baomidou.springboot.xxx
  151. #自定义SQL注入器
  152. #sql-injector: com.baomidou.springboot.xxx
  153. configuration:
  154. map-underscore-to-camel-case: true
  155. cache-enabled: false
  156. io.github.lvyahui8.spring:
  157. base-packages: com.diagbot.aggregate
  158. thread-number: 200
  159. myhost: localhost
  160. oath.self.address: http://${myhost}:${server.port}
  161. swagger:
  162. enable: true
  163. #Token鉴权
  164. tokenAuth:
  165. enable: false
  166. #图片服务器
  167. imageUrl:
  168. prefix: http://10.58.4.152:82
  169. #病历质控地址
  170. mrqc:
  171. url: http://10.58.4.152:5858
  172. #CDSS核心地址
  173. cdss-core:
  174. <<<<<<< Updated upstream
  175. url: http://192.168.2.236:7010
  176. #页面推送模式地址配置
  177. data-page:
  178. url: http://192.168.2.122:5654
  179. =======
  180. url: http://10.58.4.152:7010
  181. #页面推送模式地址配置
  182. data-page:
  183. url: http://10.58.4.152:5654
  184. >>>>>>> Stashed changes