application-dev.yml 4.3 KB

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