application-8200.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #三方支付配置
  2. pay:
  3. callbackUrl: https://api.quanshu123.com/service/notify/payCallback
  4. # 日志配置
  5. logging:
  6. config: classpath:logback-8200.xml
  7. level:
  8. com.qs.mp: debug
  9. org.springframework: info
  10. org.apache: warn
  11. io.lettuce.core: warn
  12. org.quartz.core: warn
  13. com.qs.mp.framework.interceptor: warn
  14. # 数据源配置
  15. spring:
  16. redis:
  17. host: 172.17.0.17
  18. port: 6379
  19. password: SD232@%Gwwer1ds0(SS323
  20. # 连接超时时间(毫秒)
  21. timeout: 10000
  22. jedis:
  23. pool:
  24. # 连接池中的最大空闲连接
  25. max-idle: 30
  26. # 连接池中的最小空闲连接
  27. min-idle: 6
  28. # 连接池最大连接数(使用负值表示没有限制)
  29. max-active: 10
  30. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  31. max-wait: 3000
  32. datasource:
  33. type: com.alibaba.druid.pool.DruidDataSource
  34. driverClassName: com.mysql.cj.jdbc.Driver
  35. druid:
  36. # 主库数据源
  37. master:
  38. url: jdbc:mysql://172.17.0.3:3306/ygpdb-prod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
  39. username: ygp_prod
  40. password: x23W%s2PcW23)vw23Csaw234)3
  41. # 从库数据源
  42. slave:
  43. # 从数据源开关/默认关闭
  44. enabled: false
  45. url:
  46. username:
  47. password:
  48. # 初始连接数
  49. initialSize: 5
  50. # 最小连接池数量
  51. minIdle: 10
  52. # 最大连接池数量
  53. maxActive: 20
  54. # 配置获取连接等待超时的时间
  55. maxWait: 60000
  56. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  57. timeBetweenEvictionRunsMillis: 60000
  58. # 配置一个连接在池中最小生存的时间,单位是毫秒
  59. minEvictableIdleTimeMillis: 300000
  60. # 配置一个连接在池中最大生存的时间,单位是毫秒
  61. maxEvictableIdleTimeMillis: 900000
  62. # 配置检测连接是否有效
  63. validationQuery: SELECT 1 FROM DUAL
  64. testWhileIdle: true
  65. testOnBorrow: false
  66. testOnReturn: false
  67. webStatFilter:
  68. enabled: true
  69. statViewServlet:
  70. enabled: true
  71. # 设置白名单,不填则允许所有访问
  72. allow:
  73. url-pattern: /monitor/druid/*
  74. filter:
  75. stat:
  76. enabled: true
  77. # 慢SQL记录
  78. log-slow-sql: true
  79. slow-sql-millis: 1000
  80. merge-sql: true
  81. wall:
  82. config:
  83. multi-statement-allow: true
  84. # 环境配置
  85. server:
  86. # 服务端口
  87. port: 8200
  88. servlet:
  89. # 项目contextPath
  90. context-path: /
  91. session-timeout: 1800
  92. # 生成唯一ID的,同一Mac地址多应用的部署方式,用这个进行区分
  93. datacenterId: 1
  94. # 环境标识
  95. env: prod
  96. #API访问
  97. client:
  98. # appKey
  99. device:
  100. appKey: 3c8b36cf4ace53e76a210e5edd75ef2b
  101. # appSecret
  102. appSecret: b84382574b0f4988bc68367fbc340d3a
  103. # cloud
  104. cloud:
  105. # 存储对象公开可访问
  106. public-bucket-name: mp-public-1307117429
  107. # 存储对象公开不可访问,需要通过应用下载
  108. private-bucket-name: mp-auth-1307117429
  109. # 小程序
  110. miniprogram:
  111. # 接收通知的状态
  112. state: formal
  113. # 盲票导出每页查询数量
  114. export:
  115. page-size: 2000