application.yml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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. yihu:
  121. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  122. yihu_OpenPlatform_appId: 9000276
  123. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  124. fastDFS:
  125. fastdfs_file_url: http://172.19.103.54:80/
  126. images:
  127. path: /var/local/upload/images
  128. renew_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
  129. sign_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
  130. sign:
  131. check_upload: http://172.19.103.85:8011/wlyy_service
  132. quartz:
  133. name: schedulerFactoryBean_test
  134. ylzpay:
  135. onepayApi: http://120.42.37.94:1301/onepay-web/
  136. onepayAppId: 1BGKM1UHM03P7B2CA8C000005626EB0E
  137. onepayAppSecret: 1BGKM1UHM03I7B2CA8C00000AB682E9A
  138. express:
  139. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  140. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  141. sf_code: SDDF
  142. sf_check_word: ttzlgGyOQu4L
  143. ---
  144. ##正式的配置
  145. spring:
  146. profiles: prod
  147. datasource:
  148. wlyy:
  149. url: jdbc:mysql://59.61.92.94:3306/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  150. username: jkzl_root
  151. password: jkzlehr@321465
  152. health:
  153. url: jdbc:mysql://59.61.92.94:3306/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  154. # username: wlyy
  155. # password: jkzlehr@321465
  156. username: jkzl_root
  157. password: jkzlehr@321465
  158. redis:
  159. host: 120.41.253.95 # Redis server host.
  160. port: 6380 # Redis server port.
  161. password: jkzl_ehr
  162. server:
  163. server_url: http://www.xmtyw.cn/wlyy/
  164. im:
  165. im_list_get: http://120.41.253.95:3000/
  166. data_base_name: im
  167. wechat:
  168. appId: wxad04e9c4c5255acf
  169. appSecret: ae77c48ccf1af5d07069f5153d1ac8d3
  170. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  171. wechat_base_url: http%3a%2f%2fwww.xmtyw.cn%2fwlyy
  172. accId: gh_ffd64560fb21
  173. message:
  174. ##医生追加建议提醒 --签约邀请
  175. doctor_invitel_template: MQn79bx1ofb6hekhmRIuqLU7KjySJQzaBzrimgqVrzA
  176. #咨询回复
  177. template_consult_notice: 0mF_vHj-ILx8EH8DwzmAi7LqzjqYiU9IrSRRmziTZyc
  178. #签约成功
  179. template_sign_success: 0D2vYZVRzFz15p9Y_pkZ1DKutDq8UOsks79FXUKS0tA
  180. #签约失败
  181. template_sign_failed: My2VNERjJt4NXR4Ibh42pdrP6B6ka8rQxZeWinQh99s
  182. #健康指导提醒
  183. template_health_notice: uv31ES_VCmq3tBYtyGmEQvIwU_zh9LDhF3bFpbIUt5g
  184. #解约提醒
  185. template_termination: C0tdXtA_8k-Cy4a1EkzQuI877vqaqAtRkc-e_Gsd7sk
  186. #预约成功
  187. template_appoint_success: FY3Pqa66tHIE1Fv-irbFBPOh5cYP71fkOzfZKH4S-Fo
  188. #预约取消
  189. template_appoint_failed: tldWEb9AN7p_RoHoD8ml0GxWW3V1V_mpEEhp2v6p56s
  190. #缴费提醒
  191. template_expenses_remind: AcrlihhoGbm22A8cdFFDQ4u38ptRw0aiIPf-aGvNxMM
  192. #健康教育
  193. template_healthy_article: a5-ZGf-IUUULsuRNoHWQiBMU6pSYhLgPPqV67SjdLRo
  194. #医生变更
  195. template_doctor_change: dtzSHImbPKfwcrjWlJEjAw3lGlvrLjsobSOE8g4adZA
  196. #问卷调查
  197. template_doctor_survey: 8ZWKJmoJ7VR7Uk4YS7aa0Z94QzCkxsyTW6R4CHhUJII
  198. yihu:
  199. yihu_OpenPlatform_url: http://api.yihu.com.cn/OpenPlatform/cgiBin/1.0/
  200. yihu_OpenPlatform_appId: 9000276
  201. yihu_OpenPlatform_secret: 2JGL19AH3JS55MQY6ZOFJE1JZJ1OF23GWV67MCDQV74
  202. fastDFS:
  203. fastdfs_file_url: http://www.xmtyw.cn/
  204. images:
  205. path: /var/local/upload/images
  206. renew_path: /usr/local/tomcat8/webapps/wlyy/images/renew.png
  207. sign_path: /usr/local/tomcat8/webapps/wlyy/images/familycontract.png
  208. sign:
  209. check_upload: http://59.61.92.90:8072/wlyy_service
  210. quartz:
  211. name: schedulerFactoryBeanWlyy
  212. ylzpay:
  213. # onepayApi: https://xmhealth.ylzpay.com:8080/
  214. onepayApi: http://xmhealth.ylzpay.com:8070/
  215. onepayAppId: 1BLF5SEGN00087165F0A000027362BE5
  216. onepayAppSecret: 1BLF5SCBO01V3E78A8C00000F3A0FFE7
  217. express:
  218. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  219. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  220. sf_code: SDDF
  221. sf_check_word: ttzlgGyOQu4L
  222. ---
  223. ##开发的配置
  224. spring:
  225. profiles: dev
  226. datasource:
  227. wlyy:
  228. url: jdbc:mysql://172.19.103.77/wlyy?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  229. username: root
  230. password: 123456
  231. health:
  232. url: jdbc:mysql://172.19.103.77/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  233. username: root
  234. password: 123456
  235. redis:
  236. host: 172.19.103.88 # Redis server host.
  237. port: 6379 # Redis server port.
  238. # password: jkzl_ehr
  239. server:
  240. server_url: http://weixin.xmtyw.cn/wlyy-dev/
  241. im:
  242. im_list_get: http://172.19.103.88:3000/
  243. data_base_name: ichat
  244. wechat:
  245. appId: wxd03f859efdf0873d
  246. appSecret: 2935b54b53a957d9516c920a544f2537
  247. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  248. wechat_base_url: http%3a%2f%2fweixin.xmtyw.cn%2fwlyy-dev
  249. accId: gh_ffd64560fb21
  250. message:
  251. ##医生追加建议提醒 --签约邀请
  252. doctor_invitel_template: TLWrBtNE2kBJaFCdVzDOOnQC8N2TtRY9ZxEzwZXQcR0
  253. #咨询回复
  254. template_consult_notice: qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc
  255. #签约成功
  256. template_sign_success: hDWV_sknKlhxhOwR5h68OCXbAhRpcgnx9INrT8BybE8
  257. #签约失败
  258. template_sign_failed: ezgttXE7rG4rAboQK2ituG1dKq4PeyCj3LxGJWO_vOA
  259. #健康指导提醒
  260. template_health_notice: 128RCfyCHi22jW8PZzo7vabKMsA3SBv5VeHaDPr2Bhw
  261. #解约提醒
  262. template_termination: LrrzHjnIF67ww5uQUvSiv3_pVKJiIK4ZE3fKrvsT0AE
  263. #预约成功
  264. template_appoint_success: Bo2yqNczSU9zkg4wXoouv9tSeefZ6TziggWL3dTXPYE
  265. #预约取消
  266. template_appoint_failed: pErTBTdweIdrNRf_1Oo62YtQC0aHwPvtLaCzw44JzCQ
  267. #缴费提醒
  268. template_expenses_remind: BkTGJ8S18qZ3DfaptAXnZznAk8RJjx9v93og5vyO0bs
  269. #健康教育
  270. template_healthy_article: LA7erINJ0CSsG2G_ZCrgsDaX3krhsI4qg_NSHEyL_l4
  271. #医生变更
  272. template_doctor_change: TNIDMjduVKgVL4-k71umYLpHROvFB8K6mmm8aZC_EH8
  273. #问卷调查
  274. template_doctor_survey: IjQvzBy0PLeft2kN9mdBhACXPE9I_jyJywJ6B-JRxsY
  275. yihu:
  276. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  277. yihu_OpenPlatform_appId: 9000276
  278. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  279. fastDFS:
  280. fastdfs_file_url: http://172.19.103.54:80/
  281. message:
  282. messageServerUrl: http://10.0.1.3:8080/OpenPlatform/cgiBin/1.0/smsgw/smsSendWS/send
  283. messageAppId: 9000286
  284. messageSecret: NW63YK778QPRUD2A6K5SNF7LYRQ888BWOVD6R4FG2VF
  285. images:
  286. path: /var/local/upload/images
  287. renew_path: /usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/renew.png
  288. sign_path: /usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/familycontract.png
  289. sign:
  290. check_upload: http://172.19.103.87:8011/wlyy_service
  291. quartz:
  292. name: schedulerFactoryBean_dev
  293. ylzpay:
  294. onepayApi: http://120.42.37.94:1301/onepay-web/
  295. onepayAppId: 1BGKM1UHM03P7B2CA8C000005626EB0E
  296. onepayAppSecret: 1BGKM1UHM03I7B2CA8C00000AB682E9A
  297. express:
  298. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  299. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  300. sf_code: SDDF
  301. sf_check_word: ttzlgGyOQu4L
  302. ---
  303. ##开发连测试用这个版本的配置
  304. spring:
  305. profiles: dev_test
  306. datasource:
  307. wlyy:
  308. url: jdbc:mysql://172.19.103.85/wlyy?useUnicode:true&characterEncoding=utf-8&autoReconnect=true
  309. username: linzhou
  310. password: linzhou
  311. health:
  312. url: jdbc:mysql://172.19.103.85/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  313. username: linzhou
  314. password: linzhou
  315. redis:
  316. host: 172.19.103.88 # Redis server host.
  317. port: 6379 # Redis server port.
  318. # password: jkzl_ehr
  319. server:
  320. server_url: http://ehr.yihu.com/wlyy/
  321. im:
  322. im_list_get: http://172.19.103.88:3000/
  323. data_base_name: im_new
  324. wechat:
  325. appId: wx1f129f7b51701428
  326. appSecret: 988f005d8309ed1795939e0f042431fb
  327. wechat_token: 27eb3bb24f149a7760cf1bb154b08040
  328. wechat_base_url: http%3a%2f%2fehr.yihu.com%2fwlyy
  329. accId: gh_ffd64560fb21
  330. message:
  331. ##医生追加建议提醒 --签约邀请
  332. doctor_invitel_template: uXdBJVbrhKG-WLaCG4s8C4SXSr2kknQ94vKFt-3rIiA
  333. #咨询回复
  334. template_consult_notice: dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18
  335. #签约成功
  336. template_sign_success: VYGj8OUKj6FH4i4_nZS2UAHurJxQHx-7_OBPILIdB8s
  337. #签约失败
  338. template_sign_failed: m221Jrkm0UUY00ExTCpQNTB8t_1U_V4LR9Bg8BgH9-o
  339. #健康指导提醒
  340. template_health_notice: 5Nts8lA_at9Cd1JuTK-qDxx95lchpcmUfPTEwYDgXYQ
  341. #解约提醒
  342. template_termination: qZm1NwSueAsbHaOf9DrnLoSj0X5gZuh9W7aDYzLWNds
  343. #预约成功
  344. template_appoint_success: vU5x2tGyk1zUngBrEqMfnFqqMa6M8J98w8k5MCSUYM
  345. #预约取消
  346. template_appoint_failed: r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
  347. #缴费提醒
  348. template_expenses_remind: pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
  349. #健康教育
  350. template_healthy_article: aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
  351. #医生变更
  352. template_doctor_change: V5h0F84t972kUzQvWy8qYrgdaYGJVj10pFeFVl19Nb8
  353. #问卷调查
  354. template_doctor_survey: OqQXrb-e43_TJpq_70_K_y6vYJgY5mpjFYY4c5RWFP4
  355. yihu:
  356. yihu_OpenPlatform_url: http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
  357. yihu_OpenPlatform_appId: 9000276
  358. yihu_OpenPlatform_secret: OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
  359. fastDFS:
  360. fastdfs_file_url: http://172.19.103.54:80/
  361. images:
  362. path: /var/local/upload/images
  363. renew_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
  364. sign_path: /usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
  365. sign:
  366. check_upload: http://172.19.103.85:8011/wlyy_service
  367. quartz:
  368. name: schedulerFactoryBean_test_dev
  369. express:
  370. sf_url: http://218.17.248.244:11080/bsp-oisp/sfexpressService
  371. # sf_url: https://bsp-ois.sit.sf-express.com:9443/bsp-ois/sfexpressServic
  372. sf_code: SDDF
  373. sf_check_word: ttzlgGyOQu4L