application-test.yml 4.5 KB

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