application-test.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. # 数据库配置
  40. datasource:
  41. cdss:
  42. driver-class-name: com.mysql.cj.jdbc.Driver
  43. platform: mysql
  44. url: jdbc:mysql://192.168.2.241:3306/cdss?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true
  45. username: root
  46. password: lantone
  47. med:
  48. driver-class-name: com.mysql.cj.jdbc.Driver
  49. platform: mysql
  50. 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
  51. username: root
  52. password: lantone
  53. #redis
  54. redis:
  55. database:
  56. cache: 11 # cache索引
  57. similar: 11 # similar索引
  58. host: 192.168.2.241 #Redis服务器地址
  59. port: 6379 # Redis服务器连接端口(本地环境端口6378,其他环境端口是6379)
  60. password: lantone # Redis服务器连接密码(默认为空)
  61. lettuce:
  62. pool:
  63. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  64. max-idle: 5 # 连接池中的最大空闲连接
  65. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  66. min-idle: 0 # 连接池中的最小空闲连接
  67. timeout: 20000 # 连接超时时间(毫秒)
  68. servlet:
  69. multipart:
  70. max-request-size: 2048MB
  71. maxFileSize: 50MB
  72. neo4j:
  73. data:
  74. URI: http://192.168.2.234:7480
  75. username: neo4j
  76. password: root
  77. #mybatis
  78. mybatis-plus:
  79. mapper-locations: classpath:/mapper/*Mapper.xml
  80. #实体扫描,多个package用逗号或者分号分隔
  81. typeAliasesPackage: com.diagbot.entity
  82. global-config:
  83. #刷新mapper 调试神器
  84. db-config:
  85. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  86. id-type: id_worker
  87. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  88. field-strategy: not_empty
  89. #驼峰下划线转换
  90. column-underline: true
  91. #数据库大写下划线转换
  92. #capital-mode: true
  93. #刷新mapper 调试神器
  94. refresh-mapper: true
  95. #逻辑删除配置
  96. logic-delete-value: 0
  97. logic-not-delete-value: 1
  98. #自定义填充策略接口实现
  99. #meta-object-handler: com.baomidou.springboot.xxx
  100. #自定义SQL注入器
  101. #sql-injector: com.baomidou.springboot.xxx
  102. configuration:
  103. map-underscore-to-camel-case: true
  104. cache-enabled: false
  105. io.github.lvyahui8.spring:
  106. base-packages: com.diagbot.aggregate
  107. thread-number: 200
  108. swagger:
  109. enable: true
  110. CRF:
  111. url: http://192.168.2.234:3456
  112. ChiefPresentSimilarity:
  113. url: http://192.168.2.234:3456
  114. StandConvert:
  115. url: http://192.168.2.234:23232
  116. rate: 0.9
  117. StandConvertNew:
  118. url: http://192.168.3.150:9205
  119. rate: 0.9
  120. IcssPush:
  121. url: http://192.168.2.241:5008
  122. debugFlag: true