application.yml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. server:
  2. port: ${server.ag-basic-port}
  3. tomcat:
  4. basedir: /data1/apps/temp1
  5. max-http-form-post-size: -1
  6. max-http-header-size: 102400
  7. spring:
  8. datasource:
  9. hikari:
  10. idle-timeout: 600000 # 10 minutes
  11. max-lifetime: 1800000 # 30 minutes
  12. health-check-properties: "select 1"
  13. driver-class-name: com.mysql.jdbc.Driver
  14. max-active: 100
  15. max-idle: 100 #最大空闲连接
  16. min-idle: 10 #最小空闲连接
  17. validation-query-timeout: 20
  18. log-validation-errors: true
  19. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  20. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  21. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  22. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  23. idle-timeout: 20000
  24. connection-test-query: SELECT 1
  25. num-tests-per-eviction-run: 100 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  26. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  27. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  28. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  29. redis:
  30. database: 0 # Database index used by the connection factory.
  31. timeout: 0 # Connection timeout in milliseconds.
  32. pool:
  33. 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.
  34. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  35. 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.
  36. 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.
  37. hystrix:
  38. command:
  39. default:
  40. execution:
  41. isolation:
  42. thread:
  43. timeoutInMilliseconds: 4800000
  44. #Ribbon
  45. ribbon:
  46. ReadTimeout: 600000
  47. ConnectTimeout: 600000
  48. SocketTimeout: 600000
  49. MaxAutoRetries: 3
  50. MaxAutoRetriesNextServer: 0
  51. eureka:
  52. enabled: true
  53. # sleuth:
  54. # sampler:
  55. # percentage: 1.0 #采用需要的请求的百分比 默认是0.1 即 10%
  56. zuul:
  57. retryable: true
  58. config-priority: false
  59. ignored-services: '*'
  60. sensitive-headers:
  61. routes:
  62. svr-iot:
  63. path: /cityihealth/iot/**
  64. serviceId: svr-iot
  65. svr-base:
  66. path: /cityihealth/base/**
  67. serviceId: svr-base
  68. svr-visit-behind:
  69. path: /visitBehind/**
  70. serviceId: svr-visit-behind
  71. #药柜预发布环境
  72. svr-base-yg:
  73. path: /cityihealth/baseygTest/**
  74. serviceId: svr-base-yg
  75. #药柜设备备用地址2
  76. svr-base-prod:
  77. path: /cityihealth/baseProd/**
  78. serviceId: svr-base-prod
  79. #药柜后台预发布
  80. svr-authentication-yg:
  81. path: /cityihealth/authygTest/**
  82. serviceId: svr-authentication-yg
  83. #新冠患者招募
  84. svr-base-vol:
  85. path: /cityihealth/baseVol/**
  86. serviceId: svr-base-vol
  87. svr-authentication:
  88. path: /cityihealth/auth/**
  89. serviceId: svr-authentication
  90. svr-authentication-test:
  91. path: /cityihealthTest/auth/**
  92. serviceId: svr-authentication-test
  93. #公司官网
  94. svr-base-gw:
  95. path: /cityihealth/basegw/**
  96. serviceId: svr-base-gw
  97. svr-authentication-gw:
  98. path: /cityihealth/authgw/**
  99. serviceId: svr-authentication-gw
  100. svr-healthy-house:
  101. path: /cityihealth/healthyHouse/**
  102. serviceId: svr-healthy-house
  103. svr-patient:
  104. path: /cityihealth/patient/**
  105. serviceId: svr-patient
  106. svr-internet-hospital:
  107. path: /hospital/**
  108. serviceId: svr-internet-hospital
  109. svr-internet-hospital-test:
  110. path: /hospitalTest/**
  111. serviceId: svr-internet-hospital-test
  112. svr-internet-hospital-entrance:
  113. path: /hospitalEntrance/**
  114. serviceId: svr-internet-hospital-entrance
  115. svr-door-service:
  116. path: /doorService/**
  117. serviceId: svr-door-service
  118. svr-cloud-care:
  119. path: /cloudCare/**
  120. serviceId: svr-cloud-care
  121. svr-cloud-care-test:
  122. path: /cloudCareTest/**
  123. serviceId: svr-cloud-care-test
  124. svr-cloud-medicine:
  125. path: /cloudMedicine/**
  126. serviceId: svr-cloud-care
  127. svr-rehabilitation:
  128. path: /rehabilitation/**
  129. serviceId: svr-rehabilitation
  130. endpoints:
  131. env:
  132. enabled: false
  133. trace:
  134. enabled: false
  135. mappings:
  136. enabled: false
  137. heapdump:
  138. enabled: false
  139. configprops:
  140. enabled: false
  141. metrics:
  142. enabled: false
  143. features:
  144. enabled: false
  145. beans:
  146. enabled: false
  147. autoconfig:
  148. enabled: false
  149. loggers:
  150. enabled: false
  151. dump:
  152. enabled: false
  153. health:
  154. enabled: false
  155. # 信息安全
  156. security:
  157. csrf:
  158. enable: true
  159. #---
  160. #spring:
  161. # profiles: jwdev
  162. # datasource:
  163. # url: jdbc:mysql://172.26.0.114/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  164. # username: root
  165. # password: jkzlehr
  166. # redis:
  167. # host: 172.19.103.88 # Redis server host.
  168. # port: 6379 # Redis server port.
  169. ## password: jkzl_ehr
  170. ## zipkin:
  171. ## base-url: http://localhost:9411 #日志追踪的地址
  172. #
  173. ---
  174. spring:
  175. profiles: jwtest
  176. datasource:
  177. url: jdbc:mysql://172.26.0.104/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  178. username: root
  179. password: jkzlehr
  180. redis:
  181. host: 172.26.0.253 # Redis server host.
  182. port: 6379 # Redis server port.
  183. ---
  184. spring:
  185. profiles: iottest
  186. datasource:
  187. url: jdbc:mysql://172.26.0.104/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  188. username: root
  189. password: jkzlehr
  190. redis:
  191. host: 172.26.0.253 # Redis server host.
  192. port: 6379 # Redis server port.
  193. ---
  194. spring:
  195. profiles: iotyanshi
  196. datasource:
  197. url: jdbc:mysql://172.26.0.195/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  198. username: root
  199. password: jkzlehr
  200. redis:
  201. host: 172.26.0.190 # Redis server host.
  202. port: 6379 # Redis server port.
  203. #---
  204. #spring:
  205. # profiles: jwprod
  206. # datasource:
  207. # url: jdbc:mysql://172.16.1.42/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  208. # username: im
  209. # password: 2oEq3Kf7
  210. # redis:
  211. # host: 192.0.33.26 # Redis server host.
  212. # port: 6390 # Redis server port.
  213. # password: Kb6wKDQP1W4
  214. ## zipkin:
  215. ## base-url: http://localhost:9411 #日志追踪的地址
  216. #---
  217. #spring:
  218. # profiles: jwOracleProd
  219. # datasource:
  220. # url: jdbc:mysql://172.16.1.42/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  221. # username: im
  222. # password: 2oEq3Kf7
  223. # redis:
  224. # host: 192.0.33.26 # Redis server host.
  225. # port: 6390 # Redis server port.
  226. # password: Kb6wKDQP1W4
  227. ## zipkin:
  228. ## base-url: http://localhost:9411 #日志追踪的地址
  229. #
  230. #---
  231. ### 心脏中心内网配置
  232. #spring:
  233. # profiles: xzprod_in
  234. # datasource:
  235. # url: jdbc:mysql://192.168.103.155:7306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  236. # username: jkzl
  237. # password: jkzl@2020
  238. # redis:
  239. # host: 192.168.103.158 # Redis server host.
  240. # port: 6380 # Redis server port.
  241. # password: q4YaQemf
  242. #
  243. #---
  244. ### 心脏中心外网配置
  245. #spring:
  246. # profiles: xzprod
  247. # datasource:
  248. # url: jdbc:mysql://172.16.100.240:7306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  249. # username: jkzl
  250. # password: jkzl@2020
  251. # redis:
  252. # host: 172.16.100.240 # Redis server host.
  253. # port: 6380 # Redis server port.
  254. # password: q4YaQemf
  255. ---
  256. ## 卫计委配置
  257. spring:
  258. profiles: xmjwprod
  259. datasource:
  260. url: jdbc:mysql://59.61.92.90:9409/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  261. username: wlyy
  262. password: qY#j2n5O
  263. redis:
  264. host: 59.61.92.90 # Redis server host.
  265. port: 9054 # Redis server port.
  266. password: jkzlehr
  267. ---
  268. spring:
  269. profiles: iotprod
  270. datasource:
  271. url: jdbc:mysql://10.90.32.3:20002/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  272. username: wlyy_new
  273. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  274. redis:
  275. host: 59.61.92.90 # Redis server host.
  276. port: 9054 # Redis server port.
  277. password: o!a1#B74&m
  278. ---
  279. spring:
  280. profiles: iotprodIn
  281. datasource:
  282. url: jdbc:mysql://10.95.22.143:3306/iot-base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  283. username: wlyy_new
  284. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  285. redis:
  286. host: 10.95.22.142 # Redis server host.
  287. port: 6380 # Redis server port.
  288. password: o!a1#B74&m
  289. ---
  290. spring:
  291. profiles: jwystest
  292. datasource:
  293. url: jdbc:mysql://172.26.0.104/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  294. username: root
  295. password: jkzlehr
  296. redis:
  297. host: 172.26.0.190 # Redis server host.
  298. port: 6379 # Redis server port.
  299. ---
  300. spring:
  301. profiles: tnJwprod
  302. datasource:
  303. url: jdbc:mysql://10.9.1.247:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  304. username: wlyy
  305. password: qY#j2n5O
  306. redis:
  307. host: 10.9.1.247 # Redis server host.
  308. port: 6380 # Redis server port.
  309. password: Kb6wKDQP1W4
  310. ---
  311. spring:
  312. profiles: hzprod
  313. datasource:
  314. url: jdbc:mysql://10.18.43.40:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  315. username: wlyy
  316. password: '0XxS3W*!cRj'
  317. redis:
  318. host: 10.18.43.40 # Redis server host.
  319. port: 6379 # Redis server port.
  320. password: Kb6wKDQP1W4
  321. ---
  322. spring:
  323. profiles: wjwProd
  324. datasource:
  325. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  326. username: wlyy
  327. password: 0XxS3W*!cRj
  328. redis:
  329. host: 127.0.0.1 # Redis server host.
  330. port: 6380 # Redis server port.
  331. password: Kb6wKDQP1W4
  332. ---
  333. spring:
  334. profiles: wjwProdIn
  335. datasource:
  336. url: jdbc:mysql://127.0.0.1:3304/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  337. username: wlyy_new
  338. password: "@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK"
  339. redis:
  340. host: 127.0.0.1 # Redis server host.
  341. port: 6380 # Redis server port.
  342. password: Kb6wKDQP1W4
  343. ---
  344. spring:
  345. profiles: dsyy
  346. datasource:
  347. url: jdbc:mysql://127.0.0.1:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  348. username: wlyy
  349. password: 2oEq3Kf7@zjxl
  350. redis:
  351. host: 127.0.0.1 # Redis server host.
  352. port: 6380 # Redis server port.
  353. password: Kb6wKDQP1W4
  354. ---
  355. spring:
  356. profiles: hcyyProd
  357. datasource:
  358. url: jdbc:mysql://192.168.120.103:6001/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  359. username: wlyy
  360. password: 2oEq3Kf7@zjxl
  361. redis:
  362. host: 192.168.120.103 # Redis server host.
  363. port: 6007 # Redis server port.
  364. password: Kb6wKDQP1W4
  365. ---
  366. spring:
  367. profiles: jwZnyg
  368. datasource:
  369. url: jdbc:mysql://172.26.0.222:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  370. username: root
  371. password: jkzlehr
  372. redis:
  373. host: 172.26.0.222 # Redis server host.
  374. port: 6379 # Redis server port.
  375. password: Kb6wKDQP1W4
  376. ---
  377. spring:
  378. profiles: jwZnygProd
  379. datasource:
  380. url: jdbc:mysql://59.61.92.90:9409/medicine?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  381. username: wlyy
  382. password: qY#j2n5O
  383. redis:
  384. host: 59.61.92.90
  385. port: 9054
  386. password: jkzlehr
  387. ---
  388. spring:
  389. profiles: ZjxlProd
  390. datasource:
  391. url: jdbc:mysql://172.26.0.13:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  392. username: root
  393. password: jkzlehr
  394. redis:
  395. host: 172.26.0.253 # Redis server host.
  396. port: 6379 # Redis server port.
  397. ---
  398. spring:
  399. profiles: jwZnygProdIn
  400. datasource:
  401. url: jdbc:mysql://10.95.22.191:3406/medicine?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  402. username: wlyy
  403. password: qY#j2n5O
  404. redis:
  405. host: 10.95.22.142
  406. port: 6380
  407. password: jkzlehr
  408. ---
  409. spring:
  410. profiles: mlwProd
  411. datasource:
  412. url: jdbc:mysql://10.172.0.61:3306/base?useUnicode:true&characterEncoding=utf-8&autoReconnect=true&useSSL=false
  413. username: root
  414. password: 4D^tK%!4
  415. redis:
  416. host: 10.172.0.61
  417. port: 6379
  418. password: Kb6wKDQP1W4
  419. ---
  420. ## 眼科医院配置
  421. spring:
  422. profiles: jwOracleProd
  423. datasource:
  424. driver-class-name: oracle.jdbc.driver.OracleDriver
  425. url: jdbc:oracle:thin:@10.10.10.16:1521/rac
  426. username: HLWYY
  427. password: Xmykzxhlwyy963
  428. jpa:
  429. properties:
  430. hibernate:
  431. dialect: org.hibernate.dialect.Oracle10gDialect
  432. show_sql: true
  433. database: oracle
  434. redis:
  435. host: 192.168.33.67 # Redis server host.
  436. port: 6380 # Redis server port.
  437. password: Kb6wKDQP1W4