application-dev.yml 3.7 KB

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