application-prod.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. type: com.alibaba.druid.pool.DruidDataSource
  5. # driverClassName: com.mysql.cj.jdbc.Driver
  6. druid:
  7. # 主库数据源
  8. master:
  9. url: jdbc:mysql://172.17.0.6:3306/twzd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
  10. username: root
  11. password: Miaxis@2020
  12. # 从库数据源
  13. # newgzpt:
  14. # # 从数据源开关/默认关闭
  15. # enabled: true
  16. # url: jdbc:oracle:thin:@47.99.70.145:1521:orcl
  17. # username: newgzpt
  18. # password: newgzpt2016
  19. # 初始连接数
  20. initialSize: 5
  21. # 最小连接池数量
  22. minIdle: 10
  23. # 最大连接池数量
  24. maxActive: 20
  25. # 配置获取连接等待超时的时间
  26. maxWait: 60000
  27. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  28. timeBetweenEvictionRunsMillis: 60000
  29. # 配置一个连接在池中最小生存的时间,单位是毫秒
  30. minEvictableIdleTimeMillis: 300000
  31. # 配置一个连接在池中最大生存的时间,单位是毫秒
  32. maxEvictableIdleTimeMillis: 900000
  33. # 配置检测连接是否有效
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. webStatFilter:
  39. enabled: true
  40. statViewServlet:
  41. enabled: true
  42. # 设置白名单,不填则允许所有访问
  43. allow:
  44. url-pattern: /druid/*
  45. # 控制台管理用户名和密码
  46. login-username:
  47. login-password:
  48. filter:
  49. stat:
  50. enabled: true
  51. # 慢SQL记录
  52. log-slow-sql: true
  53. slow-sql-millis: 1000
  54. merge-sql: true
  55. wall:
  56. config:
  57. multi-statement-allow: true
  58. # redis 配置
  59. redis:
  60. # 地址
  61. host: 172.17.66.3
  62. # 端口,默认为6379
  63. port: 6379
  64. # 密码
  65. password: miaxis110
  66. # 连接超时时间
  67. timeout: 10000
  68. lettuce:
  69. pool:
  70. # 连接池中的最小空闲连接
  71. min-idle: 0
  72. # 连接池中的最大空闲连接
  73. max-idle: 8
  74. # 连接池的最大数据库连接数
  75. max-active: 8
  76. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  77. max-wait: -1ms
  78. # 指定库
  79. database: 13
  80. # 微信公众号
  81. app:
  82. appId: wx67ca1b8c9816ef28
  83. appSecret: 8604f2a6eb6338cfa64e7df4ec2c08b3
  84. # 微信小程序
  85. xcx:
  86. appId: wx8f43db501343feab
  87. secret: 3509a81880669ffa6fa554b2aa050351
  88. # 微信支付
  89. wxpay:
  90. v3url: https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
  91. v3urlRefund: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
  92. merchantId: 1615410794
  93. serialNumber: 5F85D69504B3B33DAF5A7C5B86A3E93915D3D5B0
  94. v3key: 8604f2a6eb6338cfa64e7df4ec2c08b3
  95. notifyUrl: http://jpcj-h5.zzxcx.net/prod-api/open-api/wx/notify/wxpay
  96. notifyUrlRefund: http://jpcj-h5.zzxcx.net/prod-api/open-api/wx/notify/refund
  97. xcxNotifyUrl: http://jpcj-h5.zzxcx.net/prod-api/open-api/wx/notify/xcxWxpay
  98. xcxNotifyUrlRefund: http://jpcj-h5.zzxcx.net/prod-api/open-api/wx/notify/xcxRefund
  99. # 腾讯cos
  100. cos:
  101. secretId: AKIDwISNOFsJXYGjy89FJI9UnzuZFgTtRgFe
  102. secretKey: IK5af8MJzPoKbdQxDCtKWR5T5PSEkyDB
  103. bucket: ap-shanghai
  104. bucketName: twzd-1305573081
  105. path: https://twzd-1305573081.cos.ap-shanghai.myqcloud.com
  106. preffix: twzd-prod
  107. # 带参数的二维码生成路径
  108. file:
  109. ticketPath: /data/test/
  110. # 公众号
  111. wxgzh:
  112. # 上传永久素材
  113. materialUrl: https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=
  114. # 上传临时素材
  115. mediaUpload: https://api.weixin.qq.com/cgi-bin/media/upload?access_token=