application.yml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  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.cj.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. ribbon:
  54. eager-load:
  55. enabled: true
  56. retryable: true
  57. config-priority: false
  58. ignored-services: '*'
  59. sensitive-headers:
  60. routes:
  61. svr-iot:
  62. path: /cityihealth/iot/**
  63. serviceId: svr-iot
  64. svr-base:
  65. path: /cityihealth/base/**
  66. serviceId: svr-base
  67. svr-basic:
  68. path: /basic/**
  69. serviceId: svr-basic
  70. #药柜预发布环境
  71. svr-base-yg:
  72. path: /cityihealth/baseygTest/**
  73. serviceId: svr-base-yg
  74. #药柜后台预发布
  75. svr-authentication-yg:
  76. path: /cityihealth/authygTest/**
  77. serviceId: svr-authentication-yg
  78. #新冠患者招募
  79. svr-base-vol:
  80. path: /cityihealth/baseVol/**
  81. serviceId: svr-base-vol
  82. svr-authentication:
  83. path: /cityihealth/auth/**
  84. serviceId: svr-authentication
  85. #公司官网
  86. svr-base-gw:
  87. path: /cityihealth/basegw/**
  88. serviceId: svr-base-gw
  89. svr-authentication-gw:
  90. path: /cityihealth/authgw/**
  91. serviceId: svr-authentication-gw
  92. svr-healthy-house:
  93. path: /cityihealth/healthyHouse/**
  94. serviceId: svr-healthy-house
  95. svr-patient:
  96. path: /cityihealth/patient/**
  97. serviceId: svr-patient
  98. svr-internet-hospital:
  99. path: /hospital/**
  100. serviceId: svr-internet-hospital
  101. svr-internet-hospital-test:
  102. path: /hospitalTest/**
  103. serviceId: svr-internet-hospital-test
  104. svr-internet-hospital-entrance:
  105. path: /hospitalEntrance/**
  106. serviceId: svr-internet-hospital-entrance
  107. svr-door-service:
  108. path: /doorService/**
  109. serviceId: svr-door-service
  110. svr-cloud-care:
  111. path: /cloudCare/**
  112. serviceId: svr-cloud-care
  113. svr-cloud-care-test:
  114. path: /cloudCareTest/**
  115. serviceId: svr-cloud-care-test
  116. svr-cloud-medicine:
  117. path: /cloudMedicine/**
  118. serviceId: svr-cloud-care
  119. svr-rehabilitation:
  120. path: /rehabilitation/**
  121. serviceId: svr-rehabilitation
  122. host:
  123. connect-timeout-millis: 600000
  124. socket-timeout-millis: 600000
  125. endpoints:
  126. env:
  127. enabled: false
  128. trace:
  129. enabled: false
  130. mappings:
  131. enabled: false
  132. heapdump:
  133. enabled: false
  134. configprops:
  135. enabled: false
  136. metrics:
  137. enabled: false
  138. features:
  139. enabled: false
  140. beans:
  141. enabled: false
  142. autoconfig:
  143. enabled: false
  144. loggers:
  145. enabled: false
  146. # 信息安全
  147. security:
  148. csrf:
  149. enable: true
  150. #---
  151. #spring:
  152. # profiles: jwdev
  153. # datasource:
  154. # url: jdbc:mysql://172.26.0.114/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  155. # username: root
  156. # password: jkzlehr
  157. # redis:
  158. # host: 172.19.103.88 # Redis server host.
  159. # port: 6379 # Redis server port.
  160. ## password: jkzl_ehr
  161. ## zipkin:
  162. ## base-url: http://localhost:9411 #日志追踪的地址
  163. #
  164. ---
  165. spring:
  166. config:
  167. activate:
  168. on-profile: jwtest
  169. datasource:
  170. url: jdbc:mysql://172.26.0.104/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  171. username: root
  172. password: jkzlehr
  173. redis:
  174. host: 172.26.0.253 # Redis server host.
  175. port: 6379 # Redis server port.
  176. ---
  177. spring:
  178. config:
  179. activate:
  180. on-profile: iottest
  181. datasource:
  182. url: jdbc:mysql://172.26.0.104/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  183. username: root
  184. password: jkzlehr
  185. redis:
  186. host: 172.26.0.253 # Redis server host.
  187. port: 6379 # Redis server port.
  188. ---
  189. spring:
  190. config:
  191. activate:
  192. on-profile: iotyanshi
  193. datasource:
  194. url: jdbc:mysql://172.26.0.195/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  195. username: root
  196. password: jkzlehr
  197. redis:
  198. host: 172.26.0.190 # Redis server host.
  199. port: 6379 # Redis server port.
  200. #---
  201. #spring:
  202. # profiles: jwprod
  203. # datasource:
  204. # url: jdbc:mysql://172.16.1.42/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  205. # username: im
  206. # password: 2oEq3Kf7
  207. # redis:
  208. # host: 192.0.33.26 # Redis server host.
  209. # port: 6390 # Redis server port.
  210. # password: Kb6wKDQP1W4
  211. ## zipkin:
  212. ## base-url: http://localhost:9411 #日志追踪的地址
  213. #---
  214. #spring:
  215. # profiles: jwOracleProd
  216. # datasource:
  217. # url: jdbc:mysql://172.16.1.42/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  218. # username: im
  219. # password: 2oEq3Kf7
  220. # redis:
  221. # host: 192.0.33.26 # Redis server host.
  222. # port: 6390 # Redis server port.
  223. # password: Kb6wKDQP1W4
  224. ## zipkin:
  225. ## base-url: http://localhost:9411 #日志追踪的地址
  226. #
  227. #---
  228. ### 心脏中心内网配置
  229. #spring:
  230. # profiles: xzprod_in
  231. # datasource:
  232. # url: jdbc:mysql://192.168.103.155:7306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  233. # username: jkzl
  234. # password: jkzl@2020
  235. # redis:
  236. # host: 192.168.103.158 # Redis server host.
  237. # port: 6380 # Redis server port.
  238. # password: q4YaQemf
  239. #
  240. #---
  241. ### 心脏中心外网配置
  242. #spring:
  243. # profiles: xzprod
  244. # datasource:
  245. # url: jdbc:mysql://172.16.100.240:7306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  246. # username: jkzl
  247. # password: jkzl@2020
  248. # redis:
  249. # host: 172.16.100.240 # Redis server host.
  250. # port: 6380 # Redis server port.
  251. # password: q4YaQemf
  252. ---
  253. ## 卫计委配置
  254. spring:
  255. config:
  256. activate:
  257. on-profile: xmjwprod
  258. datasource:
  259. url: jdbc:mysql://59.61.92.90:9409/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  260. username: wlyy
  261. password: qY#j2n5O
  262. redis:
  263. host: 59.61.92.90 # Redis server host.
  264. port: 9054 # Redis server port.
  265. password: jkzlehr
  266. ---
  267. spring:
  268. config:
  269. activate:
  270. on-profile: iotprod
  271. datasource:
  272. url: jdbc:mysql://10.90.32.3:20002/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  273. username: wlyy_new
  274. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  275. redis:
  276. host: 59.61.92.90 # Redis server host.
  277. port: 9054 # Redis server port.
  278. password: o!a1#B74&m
  279. ---
  280. spring:
  281. config:
  282. activate:
  283. on-profile: iotprodIn
  284. datasource:
  285. url: jdbc:mysql://10.95.22.143:3306/iot-base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  286. username: wlyy_new
  287. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  288. redis:
  289. host: 10.95.22.142 # Redis server host.
  290. port: 6380 # Redis server port.
  291. password: o!a1#B74&m
  292. ---
  293. spring:
  294. config:
  295. activate:
  296. on-profile: jwystest
  297. datasource:
  298. url: jdbc:mysql://172.26.0.104/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  299. username: root
  300. password: jkzlehr
  301. redis:
  302. host: 172.26.0.190 # Redis server host.
  303. port: 6379 # Redis server port.
  304. ---
  305. spring:
  306. config:
  307. activate:
  308. on-profile: tnJwprod
  309. datasource:
  310. url: jdbc:mysql://10.9.1.247:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  311. username: wlyy
  312. password: qY#j2n5O
  313. redis:
  314. host: 10.9.1.247 # Redis server host.
  315. port: 6380 # Redis server port.
  316. password: Kb6wKDQP1W4
  317. ---
  318. spring:
  319. config:
  320. activate:
  321. on-profile: hzprod
  322. datasource:
  323. url: jdbc:mysql://10.18.43.40:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  324. username: wlyy
  325. password: '0XxS3W*!cRj'
  326. redis:
  327. host: 10.18.43.40 # Redis server host.
  328. port: 6379 # Redis server port.
  329. password: Kb6wKDQP1W4
  330. ---
  331. spring:
  332. config:
  333. activate:
  334. on-profile: wjwProd
  335. datasource:
  336. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  337. username: wlyy
  338. password: 0XxS3W*!cRj
  339. redis:
  340. host: 127.0.0.1 # Redis server host.
  341. port: 6380 # Redis server port.
  342. password: Kb6wKDQP1W4
  343. ---
  344. spring:
  345. config:
  346. activate:
  347. on-profile: dsyy
  348. datasource:
  349. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  350. username: wlyy
  351. password: 2oEq3Kf7@zjxl
  352. redis:
  353. host: 127.0.0.1 # Redis server host.
  354. port: 6380 # Redis server port.
  355. ---
  356. spring:
  357. config:
  358. activate:
  359. on-profile: hcyyProd
  360. datasource:
  361. url: jdbc:mysql://192.168.120.103:6001/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  362. username: wlyy
  363. password: 2oEq3Kf7@zjxl
  364. redis:
  365. host: 192.168.120.103 # Redis server host.
  366. port: 6007 # Redis server port.
  367. password: Kb6wKDQP1W4
  368. ---
  369. spring:
  370. config:
  371. activate:
  372. on-profile: jwZnyg
  373. datasource:
  374. url: jdbc:mysql://172.26.0.222:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  375. username: root
  376. password: jkzlehr
  377. redis:
  378. host: 172.26.0.222 # Redis server host.
  379. port: 6379 # Redis server port.
  380. password: Kb6wKDQP1W4
  381. ---
  382. spring:
  383. config:
  384. activate:
  385. on-profile: jwZnygProd
  386. datasource:
  387. url: jdbc:mysql://59.61.92.90:9409/medicine?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  388. username: wlyy
  389. password: qY#j2n5O
  390. redis:
  391. host: 59.61.92.90
  392. port: 9054
  393. password: jkzlehr
  394. ---
  395. spring:
  396. config:
  397. activate:
  398. on-profile: ZjxlProd
  399. datasource:
  400. url: jdbc:mysql://172.26.0.13:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  401. username: root
  402. password: jkzlehr
  403. redis:
  404. host: 172.26.0.253 # Redis server host.
  405. port: 6379 # Redis server port.
  406. ---
  407. spring:
  408. config:
  409. activate:
  410. on-profile: jwZnygProdIn
  411. datasource:
  412. url: jdbc:mysql://10.95.22.191:3406/medicine?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  413. username: wlyy
  414. password: qY#j2n5O
  415. redis:
  416. host: 10.95.22.142
  417. port: 6380
  418. password: jkzlehr
  419. ---
  420. spring:
  421. config:
  422. activate:
  423. on-profile: mlwProd
  424. datasource:
  425. url: jdbc:mysql://172.26.0.114:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  426. username: root
  427. password: 4D^tK%!4
  428. redis:
  429. host: 172.26.0.153
  430. port: 6379
  431. password: Kb6wKDQP1W4
  432. ---
  433. spring:
  434. config:
  435. activate:
  436. on-profile: mlwTest
  437. datasource:
  438. url: jdbc:mysql://172.26.0.114:3306/base?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  439. username: root
  440. password: 4D^tK%!4
  441. redis:
  442. host: 172.26.0.253
  443. port: 6390
  444. password: Kb6wKDQP1W4