application-test.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. mp:
  2. # 文件路径 示例( Windows配置D:/ygp/uploadPath,Linux配置 /home/ygp/uploadPath)
  3. profile: /home/quanshu/mp-server
  4. pay:
  5. callbackUrl: https://test-mp.quanshu123.com/service/notify/payCallback
  6. alipay:
  7. callbackUrl: https://test-mp.quanshu123.com/service/notify/alipayCallback
  8. # 日志配置
  9. logging:
  10. config: classpath:logback-8091.xml
  11. level:
  12. com.qs.mp: debug
  13. org.springframework: warn
  14. org.apache: warn
  15. io.lettuce.core: warn
  16. org.quartz.core: warn
  17. com.qs.mp.framework.interceptor: warn
  18. ma.glasnost.orika: warn
  19. # 数据源配置
  20. spring:
  21. redis:
  22. host: 172.17.16.14
  23. port: 6379
  24. password: '@9(s2sWppxkess'
  25. # 连接超时时间(毫秒)
  26. timeout: 10000
  27. jedis:
  28. pool:
  29. # 连接池中的最大空闲连接
  30. max-idle: 30
  31. # 连接池中的最小空闲连接
  32. min-idle: 6
  33. # 连接池最大连接数(使用负值表示没有限制)
  34. max-active: 10
  35. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  36. max-wait: 3000
  37. datasource:
  38. type: com.alibaba.druid.pool.DruidDataSource
  39. driverClassName: com.mysql.cj.jdbc.Driver
  40. druid:
  41. # 主库数据源
  42. master:
  43. url: jdbc:mysql://172.17.16.14:3306/mpdb_test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  44. username: mptest
  45. password: wan789*@dfhzHu518!dr2xosn
  46. # 从库数据源
  47. slave:
  48. # 从数据源开关/默认关闭
  49. enabled: false
  50. url:
  51. username:
  52. password:
  53. # 初始连接数
  54. initialSize: 5
  55. # 最小连接池数量
  56. minIdle: 10
  57. # 最大连接池数量
  58. maxActive: 20
  59. # 配置获取连接等待超时的时间
  60. maxWait: 60000
  61. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  62. timeBetweenEvictionRunsMillis: 60000
  63. # 配置一个连接在池中最小生存的时间,单位是毫秒
  64. minEvictableIdleTimeMillis: 300000
  65. # 配置一个连接在池中最大生存的时间,单位是毫秒
  66. maxEvictableIdleTimeMillis: 900000
  67. # 配置检测连接是否有效
  68. validationQuery: SELECT 1 FROM DUAL
  69. testWhileIdle: true
  70. testOnBorrow: false
  71. testOnReturn: false
  72. webStatFilter:
  73. enabled: true
  74. statViewServlet:
  75. enabled: true
  76. # 设置白名单,不填则允许所有访问
  77. allow:
  78. url-pattern: /monitor/druid/*
  79. filter:
  80. stat:
  81. enabled: true
  82. # 慢SQL记录
  83. log-slow-sql: true
  84. slow-sql-millis: 1000
  85. merge-sql: true
  86. wall:
  87. config:
  88. multi-statement-allow: true
  89. # 环境配置
  90. server:
  91. # 服务端口
  92. port: 8091
  93. servlet:
  94. # 项目contextPath
  95. context-path: /
  96. session-timeout: 1800
  97. # 生成唯一ID的,同一Mac地址多应用的部署方式,用这个进行区分
  98. datacenterId: 1
  99. # 环境标识
  100. env: test
  101. #API访问
  102. client:
  103. # appKey
  104. device:
  105. appKey: 3c8b36cf4ace53e76a210e5edd75ef2b
  106. # appSecret
  107. appSecret: b84382574b0f4988bc68367fbc340d3a
  108. # cloud
  109. cloud:
  110. # 存储对象公开可访问
  111. public-bucket-name: mp-public-test-1307117429
  112. # 存储对象公开不可访问,需要通过应用下载
  113. private-bucket-name: mp-auth-test-1307117429
  114. accessKey: AKIDDF4dwzlGVTAmCMGvLVP4UfbHiuqVzFEw
  115. secretKey: TgbFcjZ8HDse9ToujIabLo1yf5YqtfBX
  116. region: ap-shanghai
  117. mq:
  118. consumer-conn: true
  119. service-url: http://pulsar-op4bzppa37m4.tdmq-pulsar.ap-sh.public.tencenttdmq.com:8080
  120. auth-token: eyJrZXlJZCI6InB1bHNhci1vcDRienBwYTM3bTQiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJwdWxzYXItb3A0YnpwcGEzN200X21wLXNlcnZlci10ZXN0In0.GVeFHHSqIYqTeOtXItWOT-NfydCSNvvVVS2FlpFZNKY
  121. topic-ticket-generate: pulsar-op4bzppa37m4/test-share/topic-ticket-generate
  122. topic-ticket-pay: pulsar-op4bzppa37m4/test-share/topic-ticket-pay
  123. consumer-topics: pulsar-op4bzppa37m4/test-share/topic-ticket-generate,pulsar-op4bzppa37m4/test-share/topic-ticket-pay
  124. # 小程序
  125. miniprogram:
  126. # 接收通知的状态
  127. state: trial
  128. env_version: trial
  129. # 盲票导出每页查询数量
  130. export:
  131. page-size: 200
  132. shipping:
  133. user: 4
  134. channel: 7
  135. bind:
  136. channelId: 2
  137. # 银盛支付配置
  138. ys-pay:
  139. private-key-path: /home/quanshu/mp-server/data/ysPayPre.pfx
  140. public-key-path: /home/quanshu/mp-server/cert/ysPayPub.cer
  141. # 支付完后跳转
  142. return-url: https://test-mp-h5.quanshu123.com
  143. # 回调地址
  144. pay-notify-url: https://test-mp.quanshu123.com/service/notify/ysCallback
  145. # 分账回调地址
  146. div-notify-url: https://test-mp.quanshu123.com/service/notify/ysDivCallback
  147. # 提现回调地址
  148. withdraw-notify-url: https://test-mp.quanshu123.com/service/notify/ysWithdrawCallback