application-dev.yml 5.9 KB

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