application-prod.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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://sh-cdb-2y9n2832.sql.tencentcdb.com:60123/jkt?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. cache:
  59. type: redis
  60. # redis 配置
  61. redis:
  62. database: 1
  63. # 地址
  64. host: 1.15.29.64
  65. # 端口,默认为6379
  66. port: 6379
  67. # 密码
  68. password: miaxis110
  69. # 连接超时时间
  70. timeout: 10s
  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. # 微信支付app端
  82. app:
  83. appId: wxc439503456129660
  84. appSecret: f9e43ce4a2709eb118e268827aa63cae
  85. # 微信支付
  86. wxpay:
  87. v3url: https://api.mch.weixin.qq.com/v3/pay/transactions/app
  88. v3urlRefund: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
  89. merchantId: 1611324484
  90. serialNumber: 26C02FEDDE8C9F0F69A71CA37226F58CCBB164DE
  91. v3key: 7hM14893GvG3JK05575jk1l6P4tF042B
  92. notifyUrl: http://sdjk-admin.zzxcx.net/prod-api/open-api/wx/notify/wxpay
  93. notifyUrlRefund: http://sdjk-admin.zzxcx.net/prod-api/open-api/wx/notify/refund