application-local.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. server:
  2. port: 8190
  3. spring:
  4. application:
  5. xingxi:
  6. unifiedpay:
  7. enabled: "true"
  8. callbackUrl: "https://managertest.gululuq.com/unifiedpay/wxpay/callback"
  9. wxpay:
  10. enabled: "true"
  11. app-id: "wx12e34630814e5d30"
  12. mch-id: "1709337210"
  13. apiv3-key: "mF9oH1oV9wY3gL8iW3kU4fJ7fE1dW4vK"
  14. cert-serial-no: 4FBE124DE5AAD53E1FF52E740131A6072FE692F1
  15. private-key-path: "classpath:META-INF/apiclient_key.pem"
  16. private-cert-path: "classpath:META-INF/apiclient_cert.pem"
  17. # redis配置
  18. redis:
  19. database: 0
  20. host: redis.njnet.vip
  21. port: 6379
  22. password: Biandan123
  23. timeout: 6000ms # 连接超时时长(毫秒)
  24. lettuce:
  25. pool:
  26. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  27. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  28. max-idle: 10 # 连接池中的最大空闲连接
  29. min-idle: 5 # 连接池中的最小空闲连接
  30. rabbitmq:
  31. xMsgTtl: 301000
  32. host: mqserver.njnet.vip
  33. port: 5672
  34. username: developer01
  35. password: 123456
  36. virtual-host: xingxi-dev
  37. publisher-confirm-type: correlated
  38. datasource:
  39. type: com.alibaba.druid.pool.DruidDataSource
  40. driverClassName: com.mysql.cj.jdbc.Driver
  41. druid:
  42. # 主库数据源
  43. master:
  44. url: jdbc:mysql://47.99.85.139:3306/GoodsMarket?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  45. username: gululuq
  46. password: f^*n%QfvekP!0Rur
  47. # 从库数据源
  48. slave:
  49. # 从数据源开关/默认关闭
  50. enabled: false
  51. url:
  52. username:
  53. password:
  54. # 初始连接数
  55. initialSize: 5
  56. # 最小连接池数量
  57. minIdle: 10
  58. # 最大连接池数量
  59. maxActive: 20
  60. # 配置获取连接等待超时的时间
  61. maxWait: 60000
  62. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  63. timeBetweenEvictionRunsMillis: 60000
  64. # 配置一个连接在池中最小生存的时间,单位是毫秒
  65. minEvictableIdleTimeMillis: 300000
  66. # 配置一个连接在池中最大生存的时间,单位是毫秒
  67. maxEvictableIdleTimeMillis: 900000
  68. # 配置检测连接是否有效
  69. validationQuery: SELECT 1 FROM DUAL
  70. testWhileIdle: true
  71. testOnBorrow: false
  72. testOnReturn: false
  73. webStatFilter:
  74. enabled: true
  75. statViewServlet:
  76. enabled: true
  77. # 设置白名单,不填则允许所有访问
  78. allow:
  79. url-pattern: /monitor/druid/*
  80. filter:
  81. stat:
  82. enabled: true
  83. # 慢SQL记录
  84. log-slow-sql: true
  85. slow-sql-millis: 1000
  86. merge-sql: true
  87. wall:
  88. config:
  89. multi-statement-allow: true
  90. config:
  91. enabled: true
  92. # 日志配置
  93. logging:
  94. config: classpath:logback-local.xml
  95. level:
  96. "cn.com.xingxi": debug
  97. org.springframework: warn
  98. org.apache.http: info
  99. wx:
  100. miniapp:
  101. appid: "wx12e34630814e5d30"
  102. secret: "fc06d584d8544a00f0ff9df65a30af02"