application.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. server:
  2. port: ${server.ag-basic-port}
  3. tomcat:
  4. basedir: /data/apps/temp
  5. max-http-form-post-size: -1
  6. max-http-header-size: 102400
  7. spring:
  8. datasource:
  9. driver-class-name: com.mysql.jdbc.Driver
  10. max-active: 100
  11. max-idle: 100 #最大空闲连接
  12. min-idle: 10 #最小空闲连接
  13. validation-query-timeout: 20
  14. log-validation-errors: true
  15. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  16. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  17. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  18. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  19. idle-timeout: 20000
  20. connection-test-query: SELECT 1
  21. num-tests-per-eviction-run: 100 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  22. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  23. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  24. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  25. redis:
  26. database: 0 # Database index used by the connection factory.
  27. timeout: 0 # Connection timeout in milliseconds.
  28. pool:
  29. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  30. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  31. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  32. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This settings only has an effect if it is positive.
  33. hystrix:
  34. command:
  35. default:
  36. execution:
  37. isolation:
  38. thread:
  39. timeoutInMilliseconds: 4800000
  40. #Ribbon
  41. ribbon:
  42. ReadTimeout: 600000
  43. ConnectTimeout: 600000
  44. SocketTimeout: 600000
  45. MaxAutoRetries: 3
  46. MaxAutoRetriesNextServer: 0
  47. eureka:
  48. enabled: true
  49. # sleuth:
  50. # sampler:
  51. # percentage: 1.0 #采用需要的请求的百分比 默认是0.1 即 10%
  52. zuul:
  53. retryable: true
  54. config-priority: false
  55. ignored-services: '*'
  56. sensitive-headers:
  57. routes:
  58. svr-iot:
  59. path: /cityihealth/iot/**
  60. serviceId: svr-iot
  61. svr-base:
  62. path: /cityihealth/base/**
  63. serviceId: svr-base
  64. #新冠患者招募
  65. svr-base-vol:
  66. path: /cityihealth/baseVol/**
  67. serviceId: svr-base-vol
  68. svr-authentication:
  69. path: /cityihealth/auth/**
  70. serviceId: svr-authentication
  71. #公司官网
  72. svr-base-gw:
  73. path: /cityihealth/basegw/**
  74. serviceId: svr-base-gw
  75. svr-authentication-gw:
  76. path: /cityihealth/authgw/**
  77. serviceId: svr-authentication-gw
  78. svr-healthy-house:
  79. path: /cityihealth/healthyHouse/**
  80. serviceId: svr-healthy-house
  81. svr-patient:
  82. path: /cityihealth/patient/**
  83. serviceId: svr-patient
  84. svr-internet-hospital:
  85. path: /hospital/**
  86. serviceId: svr-internet-hospital
  87. svr-internet-hospital-entrance:
  88. path: /hospitalEntrance/**
  89. serviceId: svr-internet-hospital-entrance
  90. svr-door-service:
  91. path: /doorService/**
  92. serviceId: svr-door-service
  93. svr-cloud-care:
  94. path: /cloudCare/**
  95. serviceId: svr-cloud-care
  96. svr-cloud-care-test:
  97. path: /cloudCareTest/**
  98. serviceId: svr-cloud-care-test
  99. svr-cloud-medicine:
  100. path: /cloudMedicine/**
  101. serviceId: svr-cloud-care
  102. svr-rehabilitation:
  103. path: /rehabilitation/**
  104. serviceId: svr-rehabilitation
  105. endpoints:
  106. env:
  107. enabled: false
  108. trace:
  109. enabled: false
  110. mappings:
  111. enabled: false
  112. heapdump:
  113. enabled: false
  114. #---
  115. #spring:
  116. # profiles: jwdev
  117. # datasource:
  118. # url: jdbc:mysql://172.26.0.114/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  119. # username: root
  120. # password: jkzlehr
  121. # redis:
  122. # host: 172.19.103.88 # Redis server host.
  123. # port: 6379 # Redis server port.
  124. ## password: jkzl_ehr
  125. ## zipkin:
  126. ## base-url: http://localhost:9411 #日志追踪的地址
  127. #
  128. ---
  129. spring:
  130. profiles: jwtest
  131. datasource:
  132. url: jdbc:mysql://172.26.0.104/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  133. username: root
  134. password: jkzlehr
  135. redis:
  136. host: 172.26.0.253 # Redis server host.
  137. port: 6379 # Redis server port.
  138. ---
  139. spring:
  140. profiles: iottest
  141. datasource:
  142. url: jdbc:mysql://172.26.0.104/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  143. username: root
  144. password: jkzlehr
  145. redis:
  146. host: 172.26.0.253 # Redis server host.
  147. port: 6379 # Redis server port.
  148. ---
  149. spring:
  150. profiles: iotyanshi
  151. datasource:
  152. url: jdbc:mysql://172.26.0.195/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  153. username: root
  154. password: jkzlehr
  155. redis:
  156. host: 172.26.0.190 # Redis server host.
  157. port: 6379 # Redis server port.
  158. #---
  159. #spring:
  160. # profiles: jwprod
  161. # datasource:
  162. # url: jdbc:mysql://172.16.1.42/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  163. # username: im
  164. # password: 2oEq3Kf7
  165. # redis:
  166. # host: 192.0.33.26 # Redis server host.
  167. # port: 6390 # Redis server port.
  168. # password: Kb6wKDQP1W4
  169. ## zipkin:
  170. ## base-url: http://localhost:9411 #日志追踪的地址
  171. #---
  172. #spring:
  173. # profiles: jwOracleProd
  174. # datasource:
  175. # url: jdbc:mysql://172.16.1.42/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  176. # username: im
  177. # password: 2oEq3Kf7
  178. # redis:
  179. # host: 192.0.33.26 # Redis server host.
  180. # port: 6390 # Redis server port.
  181. # password: Kb6wKDQP1W4
  182. ## zipkin:
  183. ## base-url: http://localhost:9411 #日志追踪的地址
  184. #
  185. #---
  186. ### 心脏中心内网配置
  187. #spring:
  188. # profiles: xzprod_in
  189. # datasource:
  190. # url: jdbc:mysql://192.168.103.155:7306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  191. # username: jkzl
  192. # password: jkzl@2020
  193. # redis:
  194. # host: 192.168.103.158 # Redis server host.
  195. # port: 6380 # Redis server port.
  196. # password: q4YaQemf
  197. #
  198. #---
  199. ### 心脏中心外网配置
  200. #spring:
  201. # profiles: xzprod
  202. # datasource:
  203. # url: jdbc:mysql://172.16.100.240:7306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  204. # username: jkzl
  205. # password: jkzl@2020
  206. # redis:
  207. # host: 172.16.100.240 # Redis server host.
  208. # port: 6380 # Redis server port.
  209. # password: q4YaQemf
  210. ---
  211. ## 卫计委配置
  212. spring:
  213. profiles: xmjwprod
  214. datasource:
  215. url: jdbc:mysql://59.61.92.90:9409/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  216. username: wlyy
  217. password: qY#j2n5O
  218. redis:
  219. host: 59.61.92.90 # Redis server host.
  220. port: 9054 # Redis server port.
  221. password: jkzlehr
  222. ---
  223. spring:
  224. profiles: iotprod
  225. datasource:
  226. url: jdbc:mysql://10.90.32.3:20002/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  227. username: wlyy
  228. password: jkzlehr@123
  229. redis:
  230. host: 59.61.92.90 # Redis server host.
  231. port: 9054 # Redis server port.
  232. password: jkzlehr
  233. ---
  234. spring:
  235. profiles: jwystest
  236. datasource:
  237. url: jdbc:mysql://172.26.0.104/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  238. username: root
  239. password: jkzlehr
  240. redis:
  241. host: 172.26.0.190 # Redis server host.
  242. port: 6379 # Redis server port.
  243. ---
  244. spring:
  245. profiles: tnJwprod
  246. datasource:
  247. url: jdbc:mysql://10.9.1.247:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  248. username: wlyy
  249. password: qY#j2n5O
  250. redis:
  251. host: 10.9.1.247 # Redis server host.
  252. port: 6380 # Redis server port.
  253. password: Kb6wKDQP1W4
  254. ---
  255. spring:
  256. profiles: hzprod
  257. datasource:
  258. url: jdbc:mysql://10.18.43.40:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  259. username: wlyy
  260. password: '0XxS3W*!cRj'
  261. redis:
  262. host: 10.18.43.40 # Redis server host.
  263. port: 6379 # Redis server port.
  264. password: Kb6wKDQP1W4
  265. ---
  266. spring:
  267. profiles: wjwProd
  268. datasource:
  269. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  270. username: wlyy
  271. password: 0XxS3W*!cRj
  272. redis:
  273. host: 127.0.0.1 # Redis server host.
  274. port: 6380 # Redis server port.
  275. password: Kb6wKDQP1W4
  276. ---
  277. spring:
  278. profiles: dsyy
  279. datasource:
  280. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  281. username: wlyy
  282. password: 2oEq3Kf7@zjxl
  283. redis:
  284. host: 127.0.0.1 # Redis server host.
  285. port: 6380 # Redis server port.
  286. ---
  287. spring:
  288. profiles: hcyyProd
  289. datasource:
  290. url: jdbc:mysql://192.168.120.103:6001/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  291. username: wlyy
  292. password: 2oEq3Kf7@zjxl
  293. redis:
  294. host: 192.168.120.103 # Redis server host.
  295. port: 6007 # Redis server port.
  296. password: Kb6wKDQP1W4
  297. ---
  298. spring:
  299. profiles: jwZnyg
  300. datasource:
  301. url: jdbc:mysql://172.26.0.222:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  302. username: root
  303. password: jkzlehr
  304. redis:
  305. host: 172.26.0.222 # Redis server host.
  306. port: 6379 # Redis server port.
  307. password: Kb6wKDQP1W4
  308. ---
  309. spring:
  310. profiles: jwZnygProd
  311. datasource:
  312. url: jdbc:mysql://59.61.92.90:9409/medicine?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  313. username: wlyy
  314. password: qY#j2n5O
  315. redis:
  316. host: 59.61.92.90
  317. port: 9054
  318. password: jkzlehr