application.yml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. server:
  2. port: 8080
  3. spring:
  4. datasource:
  5. wlyy:
  6. driver-class-name: com.mysql.jdbc.Driver
  7. max-active: 50
  8. max-idle: 50 #最大空闲连接
  9. min-idle: 10 #最小空闲连接
  10. validation-query-timeout: 20
  11. log-validation-errors: true
  12. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  13. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  14. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  15. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  16. idle-timeout: 30000
  17. connection-test-query: SELECT 1
  18. num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  19. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  20. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  21. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  22. health:
  23. driver-class-name: com.mysql.jdbc.Driver
  24. max-active: 50
  25. max-idle: 50 #最大空闲连接
  26. min-idle: 10 #最小空闲连接
  27. validation-query-timeout: 20
  28. log-validation-errors: true
  29. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  30. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  31. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  32. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  33. idle-timeout: 30000
  34. connection-test-query: SELECT 1
  35. num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  36. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  37. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  38. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  39. # REDIS
  40. redis:
  41. database: 0 # Database index used by the connection factory.
  42. password: # Login password of the redis server.
  43. timeout: 0 # Connection timeout in milliseconds.
  44. #sentinel:
  45. # master: # Name of Redis server.
  46. # nodes: # Comma-separated list of host:port pairs.
  47. logging:
  48. level:
  49. root: INFO
  50. redis:
  51. quota:
  52. current:
  53. expire: 12 #实时统计redis 的过期时间 默认是2小时
  54. hibernate:
  55. dialect: org.hibernate.dialect.MySQL5Dialect
  56. show_sql: true
  57. ejb:
  58. naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
  59. multipart:
  60. enabled: true
  61. max-file-size: 50mb
  62. max-request-size: 50mb
  63. security:
  64. basic:
  65. username: jkzl
  66. password: jkzlehr
  67. ---
  68. ##测试的配置
  69. spring:
  70. profiles: test
  71. datasource:
  72. wlyy:
  73. url: jdbc:mysql://172.17.110.160/wlyy?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  74. username: ssgg
  75. password: ssgg
  76. health:
  77. url: jdbc:mysql://172.17.110.160/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  78. username: ssgg
  79. password: ssgg
  80. redis:
  81. host: 172.19.103.88 # Redis server host.
  82. port: 6379 # Redis server port.
  83. # password: jkzl_ehr
  84. server:
  85. server_url: http://ehr.yihu.com/wlyy/
  86. im:
  87. im_list_get: http://172.19.103.88:3000/
  88. data_base_name: im_new
  89. wechat:
  90. appId: wx1f129f7b51701428
  91. appSecret: 988f005d8309ed1795939e0f042431fb
  92. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  93. wechat_base_url: http%3a%2f%2fehr.yihu.com%2fwlyy
  94. accId: gh_ffd64560fb21
  95. message:
  96. ##医生追加建议提醒 --签约邀请
  97. doctor_invitel_template: uXdBJVbrhKG-WLaCG4s8C4SXSr2kknQ94vKFt-3rIiA
  98. #咨询回复
  99. template_consult_notice: dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18
  100. #签约成功
  101. template_sign_success: VYGj8OUKj6FH4i4_nZS2UAHurJxQHx-7_OBPILIdB8s
  102. #签约失败
  103. template_sign_failed: m221Jrkm0UUY00ExTCpQNTB8t_1U_V4LR9Bg8BgH9-o
  104. #健康指导提醒
  105. template_health_notice: 5Nts8lA_at9Cd1JuTK-qDxx95lchpcmUfPTEwYDgXYQ
  106. #解约提醒
  107. template_termination: qZm1NwSueAsbHaOf9DrnLoSj0X5gZuh9W7aDYzLWNds
  108. #预约成功
  109. template_appoint_success: vU5x2tGyk1zUngBrEqMfnFqqMa6M8J98w8k5MCSUYM
  110. #预约取消
  111. template_appoint_failed: r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
  112. #缴费提醒
  113. template_expenses_remind: pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
  114. #健康教育
  115. template_healthy_article: aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
  116. #医生变更
  117. template_doctor_change: V5h0F84t972kUzQvWy8qYrgdaYGJVj10pFeFVl19Nb8
  118. #问卷调查
  119. template_doctor_survey: OqQXrb-e43_TJpq_70_K_y6vYJgY5mpjFYY4c5RWFP4
  120. #审核结果通知
  121. template_doctor_audit: OFyLUeBW3r9trWw-i6pbB1sPSTD4J2recCv_mc-gKxA
  122. #服务结果通知
  123. template_doctor_service: i34rq3xFLnpf_VN2Jor9n2YlQqJMM7oXyYvuctriISw
  124. yihu:
  125. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  126. yihu_OpenPlatform_appId: 9000276
  127. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  128. fastDFS:
  129. fastdfs_file_url: http://172.19.103.54:80/
  130. images:
  131. path: /var/local/upload/images
  132. renew_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
  133. sign_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
  134. sign:
  135. check_upload: http://172.19.103.85:8011/wlyy_service
  136. quartz:
  137. name: schedulerFactoryBean_test
  138. ylzpay:
  139. onepayApi: http://120.42.37.94:1301/onepay-web/
  140. onepayAppId: 1BGKM1UHM03P7B2CA8C000005626EB0E
  141. onepayAppSecret: 1BGKM1UHM03I7B2CA8C00000AB682E9A
  142. express:
  143. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  144. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  145. sf_code: SDDF
  146. sf_check_word: ttzlgGyOQu4L
  147. ---
  148. ##正式的配置
  149. spring:
  150. profiles: prod
  151. datasource:
  152. wlyy:
  153. url: jdbc:mysql://59.61.92.94:3306/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  154. username: jkzl_root
  155. password: jkzlehr@321465
  156. health:
  157. url: jdbc:mysql://59.61.92.94:3306/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  158. # username: wlyy
  159. # password: jkzlehr@321465
  160. username: jkzl_root
  161. password: jkzlehr@321465
  162. redis:
  163. host: 120.41.253.95 # Redis server host.
  164. port: 6380 # Redis server port.
  165. password: jkzl_ehr
  166. server:
  167. server_url: http://www.xmtyw.cn/wlyy/
  168. im:
  169. im_list_get: http://120.41.253.95:3000/
  170. data_base_name: im
  171. wechat:
  172. appId: wxad04e9c4c5255acf
  173. appSecret: ae77c48ccf1af5d07069f5153d1ac8d3
  174. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  175. wechat_base_url: http%3a%2f%2fwww.xmtyw.cn%2fwlyy
  176. accId: gh_ffd64560fb21
  177. message:
  178. ##医生追加建议提醒 --签约邀请
  179. doctor_invitel_template: MQn79bx1ofb6hekhmRIuqLU7KjySJQzaBzrimgqVrzA
  180. #咨询回复
  181. template_consult_notice: 0mF_vHj-ILx8EH8DwzmAi7LqzjqYiU9IrSRRmziTZyc
  182. #签约成功
  183. template_sign_success: 0D2vYZVRzFz15p9Y_pkZ1DKutDq8UOsks79FXUKS0tA
  184. #签约失败
  185. template_sign_failed: My2VNERjJt4NXR4Ibh42pdrP6B6ka8rQxZeWinQh99s
  186. #健康指导提醒
  187. template_health_notice: uv31ES_VCmq3tBYtyGmEQvIwU_zh9LDhF3bFpbIUt5g
  188. #解约提醒
  189. template_termination: C0tdXtA_8k-Cy4a1EkzQuI877vqaqAtRkc-e_Gsd7sk
  190. #预约成功
  191. template_appoint_success: FY3Pqa66tHIE1Fv-irbFBPOh5cYP71fkOzfZKH4S-Fo
  192. #预约取消
  193. template_appoint_failed: tldWEb9AN7p_RoHoD8ml0GxWW3V1V_mpEEhp2v6p56s
  194. #缴费提醒
  195. template_expenses_remind: AcrlihhoGbm22A8cdFFDQ4u38ptRw0aiIPf-aGvNxMM
  196. #健康教育
  197. template_healthy_article: a5-ZGf-IUUULsuRNoHWQiBMU6pSYhLgPPqV67SjdLRo
  198. #医生变更
  199. template_doctor_change: dtzSHImbPKfwcrjWlJEjAw3lGlvrLjsobSOE8g4adZA
  200. #问卷调查
  201. template_doctor_survey: 8ZWKJmoJ7VR7Uk4YS7aa0Z94QzCkxsyTW6R4CHhUJII
  202. #审核结果通知
  203. template_doctor_audit: OFyLUeBW3r9trWw-i6pbB1sPSTD4J2recCv_mc-gKxA
  204. #服务结果通知
  205. template_doctor_service: i34rq3xFLnpf_VN2Jor9n2YlQqJMM7oXyYvuctriISw
  206. yihu:
  207. yihu_OpenPlatform_url: http://api.yihu.com.cn/OpenPlatform/cgiBin/1.0/
  208. yihu_OpenPlatform_appId: 9000276
  209. yihu_OpenPlatform_secret: 2JGL19AH3JS55MQY6ZOFJE1JZJ1OF23GWV67MCDQV74
  210. fastDFS:
  211. fastdfs_file_url: http://www.xmtyw.cn/
  212. images:
  213. path: /var/local/upload/images
  214. renew_path: /usr/local/tomcat8/webapps/wlyy/images/renew.png
  215. sign_path: /usr/local/tomcat8/webapps/wlyy/images/familycontract.png
  216. sign:
  217. check_upload: http://59.61.92.90:8072/wlyy_service
  218. quartz:
  219. name: schedulerFactoryBeanWlyy
  220. ylzpay:
  221. # onepayApi: https://xmhealth.ylzpay.com:8080/
  222. onepayApi: http://xmhealth.ylzpay.com:8070/
  223. onepayAppId: 1BLF5SEGN00087165F0A000027362BE5
  224. onepayAppSecret: 1BLF5SCBO01V3E78A8C00000F3A0FFE7
  225. express:
  226. sf_url: http://bsp-ois.sit.sf-express.com:9080/bsp-ois/sfexpressService
  227. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  228. sf_code: BSPdevelop
  229. sf_check_word: j8DzkIFgmlomPt0aLuwU
  230. ---
  231. ##开发的配置
  232. spring:
  233. profiles: dev
  234. datasource:
  235. wlyy:
  236. url: jdbc:mysql://172.19.103.77/wlyy?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  237. username: root
  238. password: 123456
  239. health:
  240. url: jdbc:mysql://172.19.103.77/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  241. username: root
  242. password: 123456
  243. redis:
  244. host: 172.19.103.88 # Redis server host.
  245. port: 6379 # Redis server port.
  246. # password: jkzl_ehr
  247. server:
  248. server_url: http://weixin.xmtyw.cn/wlyy-dev/
  249. im:
  250. im_list_get: http://172.19.103.88:3000/
  251. data_base_name: ichat
  252. wechat:
  253. appId: wxd03f859efdf0873d
  254. appSecret: 2935b54b53a957d9516c920a544f2537
  255. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  256. wechat_base_url: http%3a%2f%2fweixin.xmtyw.cn%2fwlyy-dev
  257. accId: gh_ffd64560fb21
  258. message:
  259. ##医生追加建议提醒 --签约邀请
  260. doctor_invitel_template: TLWrBtNE2kBJaFCdVzDOOnQC8N2TtRY9ZxEzwZXQcR0
  261. #咨询回复
  262. template_consult_notice: qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc
  263. #签约成功
  264. template_sign_success: hDWV_sknKlhxhOwR5h68OCXbAhRpcgnx9INrT8BybE8
  265. #签约失败
  266. template_sign_failed: ezgttXE7rG4rAboQK2ituG1dKq4PeyCj3LxGJWO_vOA
  267. #健康指导提醒
  268. template_health_notice: 128RCfyCHi22jW8PZzo7vabKMsA3SBv5VeHaDPr2Bhw
  269. #解约提醒
  270. template_termination: LrrzHjnIF67ww5uQUvSiv3_pVKJiIK4ZE3fKrvsT0AE
  271. #预约成功
  272. template_appoint_success: Bo2yqNczSU9zkg4wXoouv9tSeefZ6TziggWL3dTXPYE
  273. #预约取消
  274. template_appoint_failed: pErTBTdweIdrNRf_1Oo62YtQC0aHwPvtLaCzw44JzCQ
  275. #缴费提醒
  276. template_expenses_remind: BkTGJ8S18qZ3DfaptAXnZznAk8RJjx9v93og5vyO0bs
  277. #健康教育
  278. template_healthy_article: LA7erINJ0CSsG2G_ZCrgsDaX3krhsI4qg_NSHEyL_l4
  279. #医生变更
  280. template_doctor_change: TNIDMjduVKgVL4-k71umYLpHROvFB8K6mmm8aZC_EH8
  281. #问卷调查
  282. template_doctor_survey: IjQvzBy0PLeft2kN9mdBhACXPE9I_jyJywJ6B-JRxsY
  283. #审核结果通知
  284. template_doctor_audit: OFyLUeBW3r9trWw-i6pbB1sPSTD4J2recCv_mc-gKxA
  285. #服务结果通知
  286. template_doctor_service: ezr5RlX0nvh7bGU9aVsGDMJbjKDp1uMKP-AGGYXwI5g
  287. yihu:
  288. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  289. yihu_OpenPlatform_appId: 9000276
  290. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  291. fastDFS:
  292. fastdfs_file_url: http://172.19.103.54:80/
  293. message:
  294. messageServerUrl: http://10.0.1.3:8080/OpenPlatform/cgiBin/1.0/smsgw/smsSendWS/send
  295. messageAppId: 9000286
  296. messageSecret: NW63YK778QPRUD2A6K5SNF7LYRQ888BWOVD6R4FG2VF
  297. images:
  298. path: /var/local/upload/images
  299. renew_path: /usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/renew.png
  300. sign_path: /usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/familycontract.png
  301. sign:
  302. check_upload: http://172.19.103.87:8011/wlyy_service
  303. quartz:
  304. name: schedulerFactoryBean_dev
  305. ylzpay:
  306. onepayApi: http://120.42.37.94:1301/onepay-web/
  307. onepayAppId: 1BGKM1UHM03P7B2CA8C000005626EB0E
  308. onepayAppSecret: 1BGKM1UHM03I7B2CA8C00000AB682E9A
  309. express:
  310. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  311. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  312. sf_code: SDDF
  313. sf_check_word: ttzlgGyOQu4L
  314. ---
  315. ##开发连测试用这个版本的配置
  316. spring:
  317. profiles: dev_test
  318. datasource:
  319. wlyy:
  320. url: jdbc:mysql://172.19.103.85/wlyy?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  321. username: linzhou
  322. password: linzhou
  323. health:
  324. url: jdbc:mysql://172.19.103.85/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  325. username: linzhou
  326. password: linzhou
  327. redis:
  328. host: 172.19.103.88 # Redis server host.
  329. port: 6379 # Redis server port.
  330. # password: jkzl_ehr
  331. server:
  332. server_url: http://ehr.yihu.com/wlyy/
  333. im:
  334. im_list_get: http://172.19.103.88:3000/
  335. data_base_name: im_new
  336. wechat:
  337. appId: wx1f129f7b51701428
  338. appSecret: 988f005d8309ed1795939e0f042431fb
  339. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  340. wechat_base_url: http%3a%2f%2fehr.yihu.com%2fwlyy
  341. accId: gh_ffd64560fb21
  342. message:
  343. ##医生追加建议提醒 --签约邀请
  344. doctor_invitel_template: uXdBJVbrhKG-WLaCG4s8C4SXSr2kknQ94vKFt-3rIiA
  345. #咨询回复
  346. template_consult_notice: dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18
  347. #签约成功
  348. template_sign_success: VYGj8OUKj6FH4i4_nZS2UAHurJxQHx-7_OBPILIdB8s
  349. #签约失败
  350. template_sign_failed: m221Jrkm0UUY00ExTCpQNTB8t_1U_V4LR9Bg8BgH9-o
  351. #健康指导提醒
  352. template_health_notice: 5Nts8lA_at9Cd1JuTK-qDxx95lchpcmUfPTEwYDgXYQ
  353. #解约提醒
  354. template_termination: qZm1NwSueAsbHaOf9DrnLoSj0X5gZuh9W7aDYzLWNds
  355. #预约成功
  356. template_appoint_success: vU5x2tGyk1zUngBrEqMfnFqqMa6M8J98w8k5MCSUYM
  357. #预约取消
  358. template_appoint_failed: r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
  359. #缴费提醒
  360. template_expenses_remind: pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
  361. #健康教育
  362. template_healthy_article: aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
  363. #医生变更
  364. template_doctor_change: V5h0F84t972kUzQvWy8qYrgdaYGJVj10pFeFVl19Nb8
  365. #问卷调查
  366. template_doctor_survey: OqQXrb-e43_TJpq_70_K_y6vYJgY5mpjFYY4c5RWFP4
  367. yihu:
  368. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  369. yihu_OpenPlatform_appId: 9000276
  370. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  371. fastDFS:
  372. fastdfs_file_url: http://172.19.103.54:80/
  373. images:
  374. path: /var/local/upload/images
  375. renew_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
  376. sign_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
  377. sign:
  378. check_upload: http://172.19.103.85:8011/wlyy_service
  379. quartz:
  380. name: schedulerFactoryBean_test_dev
  381. express:
  382. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  383. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  384. sf_code: SDDF
  385. sf_check_word: ttzlgGyOQu4L