application-prod.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. server:
  2. port: 8085
  3. spring:
  4. datasource:
  5. url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
  6. username: reader
  7. password: 123456
  8. druid:
  9. initial-size: 5 #连接池初始化大小
  10. min-idle: 10 #最小空闲连接数
  11. max-active: 20 #最大连接数
  12. web-stat-filter:
  13. exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*" #不统计这些请求数据
  14. stat-view-servlet: #访问监控网页的登录用户名和密码
  15. login-username: druid
  16. login-password: druid
  17. data:
  18. mongodb:
  19. host: mongo
  20. port: 27017
  21. database: mall-port
  22. redis:
  23. host: redis # Redis服务器地址
  24. database: 0 # Redis数据库索引(默认为0)
  25. port: 6379 # Redis服务器连接端口
  26. password: # Redis服务器连接密码(默认为空)
  27. timeout: 300ms # 连接超时时间(毫秒)
  28. rabbitmq:
  29. host: rabbit
  30. port: 5672
  31. virtual-host: /mall
  32. username: mall
  33. password: mall
  34. mongo:
  35. insert:
  36. sqlEnable: true # 用于控制是否通过数据库数据来插入mongo
  37. logging:
  38. file:
  39. path: /var/logs
  40. level:
  41. root: info
  42. com.macro.mall: info
  43. logstash:
  44. host: logstash
  45. alipay:
  46. gatewayUrl: https://openapi-sandbox.dl.alipaydev.com/gateway.do
  47. appId: your appId
  48. alipayPublicKey: your alipayPublicKey
  49. appPrivateKey: your appPrivateKey
  50. returnUrl: http://192.168.3.101:8060/#/pages/money/paySuccess
  51. notifyUrl: