application.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. spring:
  2. profiles:
  3. active: none
  4. message:
  5. encoding: UTF-8
  6. datasource:
  7. druid:
  8. url: jdbc:mysql://localhost:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
  9. driver-class-name: com.mysql.jdbc.Driver
  10. username: litemall
  11. password: litemall123456
  12. initial-size: 10
  13. max-active: 50
  14. min-idle: 10
  15. max-wait: 60000
  16. pool-prepared-statements: true
  17. max-pool-prepared-statement-per-connection-size: 20
  18. validation-query: SELECT 1 FROM DUAL
  19. test-on-borrow: false
  20. test-on-return: false
  21. test-while-idle: true
  22. time-between-eviction-runs-millis: 60000
  23. filters: stat,wall
  24. server:
  25. port: 18080
  26. logging:
  27. config: classpath:logback-spring.xml
  28. pagehelper:
  29. helperDialect: mysql
  30. reasonable: true
  31. supportMethodsArguments: true
  32. params: count=countSql
  33. litemall:
  34. # 开发者应该设置成自己的wx相关信息
  35. wx:
  36. app-id: wxa5b486c6b918ecfb
  37. app-secret: e04004829d4c383b4db7769d88dfbca1
  38. mch-id: 111111
  39. mch-key: xxxxxx
  40. notify-url: http://122.51.199.160:8080/wx/order/pay-notify
  41. # 商户证书文件路径
  42. # 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
  43. key-path: xxxxx
  44. #通知相关配置
  45. notify:
  46. mail:
  47. # 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
  48. enable: false
  49. host: smtp.exmail.qq.com
  50. username: ex@ex.com.cn
  51. password: XXXXXXXXXXXXX
  52. sendfrom: ex@ex.com.cn
  53. sendto: ex@qq.com
  54. port: 465
  55. # 短消息模版通知配置
  56. # 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
  57. sms:
  58. enable: false
  59. # 如果是腾讯云短信,则设置active的值tencent
  60. # 如果是阿里云短信,则设置active的值aliyun
  61. active: tencent
  62. sign: litemall
  63. template:
  64. - name: paySucceed
  65. templateId: 156349
  66. - name: captcha
  67. templateId: 156433
  68. - name: ship
  69. templateId: 158002
  70. - name: refund
  71. templateId: 159447
  72. tencent:
  73. appid: 111111111
  74. appkey: xxxxxxxxxxxxxx
  75. aliyun:
  76. regionId: xxx
  77. accessKeyId: xxx
  78. accessKeySecret: xxx
  79. # 快鸟物流查询配置
  80. express:
  81. enable: false
  82. appId: "XXXXXXXXX"
  83. appKey: "XXXXXXXXXXXXXXXXXXXXXXXXX"
  84. vendors:
  85. - code: "ZTO"
  86. name: "中通快递"
  87. - code: "YTO"
  88. name: "圆通速递"
  89. - code: "YD"
  90. name: "韵达速递"
  91. - code: "YZPY"
  92. name: "邮政快递包裹"
  93. - code: "EMS"
  94. name: "EMS"
  95. - code: "DBL"
  96. name: "德邦快递"
  97. - code: "FAST"
  98. name: "快捷快递"
  99. - code: "ZJS"
  100. name: "宅急送"
  101. - code: "TNT"
  102. name: "TNT快递"
  103. - code: "UPS"
  104. name: "UPS"
  105. - code: "DHL"
  106. name: "DHL"
  107. - code: "FEDEX"
  108. name: "FEDEX联邦(国内件)"
  109. - code: "FEDEX_GJ"
  110. name: "FEDEX联邦(国际件)"
  111. # 对象存储配置
  112. storage:
  113. # 当前工作的对象存储模式,分别是local、aliyun、tencent
  114. active: local
  115. # 本地对象存储配置信息
  116. local:
  117. storagePath: storage
  118. address: http://122.51.199.160:8080/wx/storage/fetch/
  119. # 阿里云对象存储配置信息
  120. aliyun:
  121. endpoint: oss-cn-shenzhen.aliyuncs.com
  122. accessKeyId: 111111
  123. accessKeySecret: xxxxxx
  124. bucketName: xxxxxx
  125. # 腾讯对象存储配置信息
  126. # 请参考 https://cloud.tencent.com/document/product/436/6249
  127. tencent:
  128. secretId: 111111
  129. secretKey: xxxxxx
  130. region: xxxxxx
  131. bucketName: xxxxxx
  132. # 七牛云对象存储配置信息
  133. qiniu:
  134. endpoint: http://pd5cb6ulu.bkt.clouddn.com
  135. accessKey: 111111
  136. secretKey: xxxxxx
  137. bucketName: litemall
  138. swagger:
  139. production: true