application.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. ##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主 git上 svr-base -> git application ->本地 appliction ->本地 bootstarp
  2. server:
  3. port: 10050
  4. spring:
  5. datasource:
  6. driver-class-name: com.mysql.jdbc.Driver
  7. hikari:
  8. registerMbeans: true
  9. max-active: 50
  10. max-idle: 50 #最大空闲连接
  11. min-idle: 10 #最小空闲连接
  12. validation-query-timeout: 20
  13. log-validation-errors: true
  14. validation-interval: 60000 #避免过度验证,保证验证不超过这个频率——以毫秒为单位。如果一个连接应该被验证,但上次验证未达到指定间隔,将不再次验证。
  15. validation-query: SELECT 1 #SQL 查询, 用来验证从连接池取出的连接, 在将连接返回给调用者之前。 如果指定, 则查询必须是一个SQL SELECT 并且必须返回至少一行记录
  16. test-on-borrow: true #指明是否在从池中取出连接前进行检验, 如果检验失败, 则从池中去除连接并尝试取出另一个。注意: 设置为true 后如果要生效,validationQuery 参数必须设置为非空字符串
  17. test-on-return: true #指明是否在归还到池中前进行检验 注意: 设置为true 后如果要生效validationQuery 参数必须设置为非空字符串
  18. idle-timeout: 30000
  19. connection-test-query: SELECT 1
  20. num-tests-per-eviction-run: 50 #在每次空闲连接回收器线程(如果有)运行时检查的连接数量,最好和maxActive
  21. test-while-idle: true #指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除
  22. min-evictable-idle-time-millis: 3600000 #连接池中连接,在时间段内一直空闲,被逐出连接池的时间(1000*60*60),以毫秒为单位
  23. time-between-eviction-runs-millis: 300000 #在空闲连接回收器线程运行期间休眠的时间值,以毫秒为单位,一般比minEvictableIdleTimeMillis小
  24. http:
  25. multipart:
  26. max-file-size: 50MB
  27. max-request-size: 100MB
  28. data:
  29. elasticsearch: #ElasticsearchProperties
  30. cluster-name: jkzl #默认即为elasticsearch 集群名
  31. local: false #是否本地连接
  32. properties: # Additional properties used to configure the client.
  33. enable: true
  34. # JEST (Elasticsearch HTTP client) (JestProperties)
  35. elasticsearch:
  36. jest:
  37. # uris: http://172.19.103.68:9200
  38. connection-timeout: 60000 # Connection timeout in milliseconds.
  39. multi-threaded: true # Enable connection requests from multiple execution threads.
  40. # username: # Login user.
  41. # password: # Login password.
  42. # proxy.port: # Proxy port the HTTP client should use.
  43. # proxy.host: # Proxy host the HTTP client should use.
  44. #hibernate 配置
  45. hibernate:
  46. dialect: org.hibernate.dialect.MySQL5Dialect
  47. show_sql: true
  48. ejb:
  49. naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
  50. fast-dfs:
  51. connect-timeout: 2 #链接超时时间
  52. network-timeout: 30
  53. charset: ISO8859-1 #编码
  54. http:
  55. tracker-http-port: 80
  56. anti-steal-token: no
  57. secret-key: FastDFS1234567890
  58. pool: #连接池大小
  59. init-size: 5
  60. max-size: 20
  61. wait-time: 500
  62. ##拦截器开关
  63. interceptor:
  64. accesstoken:
  65. status: 1 ### 1开启 0 关闭
  66. time: 2 ##对外接的accesstoken生命周期 2小时
  67. ---
  68. spring:
  69. profiles: jwdev
  70. datasource:
  71. url: jdbc:mysql://172.26.0.204:3306/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  72. username: ssgg
  73. password: ssgg@jkzl2019
  74. # elasticsearch:
  75. # cluster-name: jkzl #默认即为elasticsearch 集群名
  76. # cluster-nodes: 172.26.0.203:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  77. # jest:
  78. # uris: http://172.26.0.202:9200
  79. wlyy:
  80. url: http://www.xmtyw.cn/wlyy/
  81. appid: 915d0345-5b1d-11e6-8344-fa163e8aee61
  82. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee57
  83. #hlw:
  84. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  85. es:
  86. pwflag: 1 # 1需要密码,2不需要密码
  87. index:
  88. Statistics: hlw_quota_test
  89. FollowUp: wlyy_followup
  90. type:
  91. Statistics: hlw_quota_test
  92. FollowUpContent: wlyy_followup_content
  93. host: http://172.26.0.112:9200
  94. tHost: 172.26.0.112:9300
  95. clusterName: jkzl
  96. securityUser: lion:jkzlehr
  97. user: lion
  98. password: jkzlehr
  99. fast-dfs:
  100. tracker-server: 172.26.0.200:22122 #服务器地址
  101. fastDFS:
  102. fastdfs_file_url: http://172.26.0.200:22122/
  103. wechat:
  104. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  105. flag: false #演示环境 true走Mysql数据库 false走Oracle
  106. ---
  107. spring:
  108. profiles: dev
  109. datasource:
  110. url: jdbc:mysql://172.26.0.104:3306/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  111. username: ssgg
  112. password: ssgg@jkzl2019
  113. # elasticsearch:
  114. # cluster-name: jkzl #默认即为elasticsearch 集群名
  115. # cluster-nodes: 172.26.0.203:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  116. # jest:
  117. # uris: http://172.26.0.202:9200
  118. wlyy:
  119. url: http://www.xmtyw.cn/wlyy/
  120. appid: 915d0345-5b1d-11e6-8344-fa163e8aee61
  121. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee57
  122. #hlw:
  123. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  124. es:
  125. pwflag: 1 # 1需要密码,2不需要密码
  126. index:
  127. Statistics: hlw_quota_test
  128. FollowUp: wlyy_followup
  129. type:
  130. Statistics: hlw_quota_test
  131. FollowUpContent: wlyy_followup_content
  132. host: http://172.26.0.112:9200
  133. tHost: 172.26.0.112:9300
  134. clusterName: jkzl
  135. securityUser: lion:jkzlehr
  136. user: lion
  137. password: jkzlehr
  138. fast-dfs:
  139. tracker-server: 172.26.0.200:22122 #服务器地址
  140. fastDFS:
  141. fastdfs_file_url: http://172.26.0.200:22122/
  142. wechat:
  143. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  144. flag: false #演示环境 true走Mysql数据库 false走Oracle
  145. ---
  146. spring:
  147. profiles: jwtest
  148. datasource:
  149. url: jdbc:mysql://172.26.0.104/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  150. username: ssgg
  151. password: ssgg@jkzl2019
  152. # elasticsearch:
  153. # cluster-name: jkzl #默认即为elasticsearch 集群名
  154. # cluster-nodes: 172.26.0.112:9300,172.26.0.112:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  155. # jest:
  156. # uris: http://172.26.0.112:9200,http://172.26.0.112:9200
  157. wlyy:
  158. url: https://ehr.yihu.com/wlyy/
  159. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  160. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  161. #hlw:
  162. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  163. es:
  164. pwflag: 1 # 1需要密码,2不需要密码
  165. index:
  166. Statistics: hlw_quota_test
  167. FollowUp: wlyy_followup
  168. type:
  169. Statistics: hlw_quota_test
  170. FollowUpContent: wlyy_followup_content
  171. host: http://172.26.0.112:9200
  172. tHost: 172.26.0.112:9300
  173. clusterName: jkzl
  174. securityUser: lion:jkzlehr
  175. user: lion
  176. password: jkzlehr
  177. fast-dfs:
  178. tracker-server: 172.19.103.54:22122 #服务器地址
  179. fastDFS:
  180. fastdfs_file_url: http://172.19.103.54:80/
  181. wechat:
  182. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  183. flag: false #演示环境 true走Mysql数据库 false走Oracle
  184. ---
  185. spring:
  186. profiles: iottest
  187. datasource:
  188. url: jdbc:mysql://172.26.0.104/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  189. username: ssgg
  190. password: ssgg@jkzl2019
  191. # elasticsearch:
  192. # cluster-name: jkzl #默认即为elasticsearch 集群名
  193. # cluster-nodes: 172.26.0.112:9300,172.26.0.112:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  194. # jest:
  195. # uris: http://172.26.0.112:9200,http://172.26.0.112:9200
  196. wlyy:
  197. url: https://ehr.yihu.com/wlyy/
  198. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  199. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  200. #hlw:
  201. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base 正式
  202. # #http://ehr.yihu.com/hlwyy/cityihealth/base 测试
  203. es:
  204. pwflag: 1 # 1需要密码,2不需要密码
  205. index:
  206. Statistics: hlw_quota_test
  207. FollowUp: wlyy_followup
  208. type:
  209. Statistics: hlw_quota_test
  210. FollowUpContent: wlyy_followup_content
  211. host: http://172.26.0.112:9200
  212. tHost: 172.26.0.112:9300
  213. clusterName: jkzl
  214. securityUser: lion:jkzlehr
  215. user: lion
  216. password: jkzlehr
  217. fast-dfs:
  218. tracker-server: 172.19.103.54:22122 #服务器地址
  219. fastDFS:
  220. fastdfs_file_url: http://172.19.103.54:80/
  221. wechat:
  222. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  223. flag: false #演示环境 true走Mysql数据库 false走Oracle
  224. ---
  225. spring:
  226. profiles: iotyanshi
  227. datasource:
  228. url: jdbc:mysql://172.26.0.195/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  229. username: root
  230. password: jkzlehr
  231. elasticsearch:
  232. cluster-name: jkzl #默认即为elasticsearch 集群名
  233. cluster-nodes: 172.26.0.190:9300,172.26.0.190:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  234. jest:
  235. uris: http://172.26.0.190:9200,http://172.26.0.190:9200
  236. wlyy:
  237. url: https://ehr.yihu.com/wlyy/
  238. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  239. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  240. #hlw:
  241. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  242. fast-dfs:
  243. tracker-server: 172.26.0.110:22122 #服务器地址
  244. fastDFS:
  245. fastdfs_file_url: http://172.26.0.110:8888/
  246. wechat:
  247. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  248. flag: false #演示环境 true走Mysql数据库 false走Oracle
  249. ---
  250. spring:
  251. profiles: jwprod
  252. datasource:
  253. #url: jdbc:mysql://59.61.92.90:9207/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  254. url: jdbc:mysql://59.61.92.90:9207/xmiot?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false
  255. username: wlyy
  256. password: jkzlehr@123
  257. elasticsearch:
  258. cluster-name: jkzl #默认即为elasticsearch 集群名
  259. cluster-nodes: 59.61.92.90:9208, 59.61.92.90:9210 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  260. jest:
  261. uris: http://59.61.92.90:9208, http://59.61.92.90:9210
  262. wlyy:
  263. url: http://www.xmtyw.cn/wlyy/
  264. appid: 915d0345-5b1d-11e6-8344-fa163e8aee61
  265. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee57
  266. #hlw:
  267. # baseUrl: http://ehr.yihu.com/hlwyy/cityihealth/base
  268. fast-dfs:
  269. tracker-server: 10.95.22.139:22122 #服务器地址
  270. fastDFS:
  271. fastdfs_file_url: http://www.xmtyw.cn/
  272. wechat:
  273. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  274. flag: false #演示环境 true走Mysql数据库 false走Oracle
  275. ---
  276. spring:
  277. profiles: prod
  278. datasource:
  279. url: jdbc:mysql://59.61.92.90:9207/xmiot?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false
  280. username: wlyy
  281. password: jkzlehr@123
  282. elasticsearch:
  283. cluster-name: jkzl #默认即为elasticsearch 集群名
  284. cluster-nodes: 59.61.92.90:9208,59.61.92.90:9210 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  285. jest:
  286. uris: http://59.61.92.90:9208,http://59.61.92.90:9210
  287. wlyy:
  288. url: http://www.xmtyw.cn/wlyy/
  289. appid: 915d0345-5b1d-11e6-8344-fa163e8aee61
  290. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee57
  291. #hlw:
  292. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  293. fast-dfs:
  294. tracker-server: 10.95.22.139:22122 #服务器地址
  295. fastDFS:
  296. fastdfs_file_url: http://www.xmtyw.cn/
  297. wechat:
  298. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  299. flag: false #演示环境 true走Mysql数据库 false走Oracle
  300. ---
  301. spring:
  302. profiles: iotprod
  303. datasource:
  304. url: jdbc:mysql://10.90.32.3:20002/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  305. username: wlyy_new
  306. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  307. # elasticsearch:
  308. # cluster-name: jkzl #默认即为elasticsearch 集群名
  309. # cluster-nodes: 10.90.32.3:20011,10.90.32.3:20011 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  310. # jest:
  311. # uris: http://10.90.32.3:20011,http://10.90.32.3:20012
  312. wlyy:
  313. url: https://www.xmtyw.cn/wlyytest/
  314. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  315. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  316. #hlw:
  317. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  318. es:
  319. pwflag: 1 # 1需要密码,2不需要密码
  320. host: http://10.90.32.3:20011
  321. tHost: 10.90.32.3:20012
  322. clusterName: jkzl
  323. securityUser: zjxl:6Dbq&fHg
  324. user: zjxl
  325. password: 6Dbq&fHg
  326. fast-dfs:
  327. tracker-server: 172.19.103.54:22122 #服务器地址
  328. fastDFS:
  329. fastdfs_file_url: http://172.19.103.54:80/
  330. wechat:
  331. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  332. flag: false #演示环境 true走Mysql数据库 false走Oracle
  333. ---
  334. spring:
  335. profiles: iotprodIn
  336. datasource:
  337. url: jdbc:mysql://10.95.22.143:3306/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  338. username: wlyy_new
  339. password: '@TaVAj%LEK@vB2J4&y9sk@TaVAj%LEK'
  340. # elasticsearch:
  341. # cluster-name: jkzl #默认即为elasticsearch 集群名
  342. # cluster-nodes: 10.90.32.3:20011,10.90.32.3:20011 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  343. # jest:
  344. # uris: http://10.90.32.3:20011,http://10.90.32.3:20012
  345. wlyy:
  346. url: http://10.95.22.10:8011/wlyy/
  347. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  348. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  349. #hlw:
  350. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  351. es:
  352. pwflag: 1 # 1需要密码,2不需要密码
  353. host: http://10.95.91.4:9200
  354. tHost: 10.95.91.4:9300
  355. clusterName: jkzl
  356. securityUser: zjxl:6Dbq&fHg
  357. user: zjxl
  358. password: 6Dbq&fHg
  359. fast-dfs:
  360. tracker-server: 10.95.22.139:22122 #服务器地址
  361. fastDFS:
  362. fastdfs_file_url: http://10.95.22.140:23000/
  363. wechat:
  364. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  365. flag: false #演示环境 true走Mysql数据库 false走Oracle
  366. ---
  367. spring:
  368. profiles: hzprod
  369. datasource:
  370. url: jdbc:mysql://10.18.43.40:3306/xmiot?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
  371. username: wlyy
  372. password: '0XxS3W*!cRj'
  373. # elasticsearch:
  374. # cluster-name: jkzl #默认即为elasticsearch 集群名
  375. # cluster-nodes: 10.90.32.3:20011,10.90.32.3:20011 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
  376. # jest:
  377. # uris: http://10.90.32.3:20011,http://10.90.32.3:20012
  378. wlyy:
  379. url: http://10.95.22.10:8011/wlyy/
  380. appid: 915d0345-5b1d-11e6-8344-fa163e8aee62
  381. appsecret: 915d0345-5b1d-11e6-8344-fa163e8aee62
  382. #hlw:
  383. # baseUrl: https://zb.xmtyw.cn/medicine/cityihealth/base
  384. es:
  385. pwflag: 1 # 1需要密码,2不需要密码
  386. host: http://10.95.91.4:9200
  387. tHost: 10.95.91.4:9300
  388. clusterName: jkzl
  389. securityUser: zjxl:6Dbq&fHg
  390. user: zjxl
  391. password: 6Dbq&fHg
  392. fast-dfs:
  393. tracker-server: 10.95.22.139:22122 #服务器地址
  394. fastDFS:
  395. fastdfs_file_url: http://10.95.22.140:23000/
  396. wechat:
  397. id: xm_zsyy_wx # base库中,wx_wechat 的id字段
  398. flag: false #演示环境 true走Mysql数据库 false走Oracle