application.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. server:
  2. port: 8001
  3. servlet:
  4. context-path: /api/v1
  5. spring:
  6. threads:
  7. virtual:
  8. enabled: true
  9. application:
  10. name: payment-platform
  11. profiles:
  12. active: dev
  13. servlet:
  14. multipart:
  15. max-file-size: 10MB
  16. max-request-size: 20MB
  17. jackson:
  18. time-zone: Asia/Shanghai
  19. datasource:
  20. type: com.alibaba.druid.pool.DruidDataSource
  21. druid:
  22. driver-class-name: org.postgresql.Driver
  23. url: jdbc:postgresql://localhost:5432/payment_platform_java?currentSchema=public
  24. username: admin
  25. password: 'xjz#123321'
  26. initial-size: 5
  27. min-idle: 5
  28. max-active: 20
  29. max-wait: 60000
  30. validation-query: SELECT 1
  31. test-while-idle: true
  32. test-on-borrow: false
  33. test-on-return: false
  34. data:
  35. redis:
  36. host: localhost
  37. port: 6379
  38. database: 1
  39. password: '123456#xjz'
  40. timeout: 10s
  41. lettuce:
  42. pool:
  43. max-active: 20
  44. max-idle: 10
  45. min-idle: 5
  46. mybatis-plus:
  47. mapper-locations: classpath*:/mapper/**/*.xml
  48. type-aliases-package: com.payment.platform.module
  49. configuration:
  50. map-underscore-to-camel-case: true
  51. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  52. # JWT
  53. jwt:
  54. secret: vgb0tnl9d58+6n-6h-ea&u^1#1sccp!794=krylxcjq75vzps$
  55. algorithm: HmacSHA256
  56. access-token-expire: 3600
  57. refresh-token-expire: 7200
  58. token-type: bearer
  59. sliding-expire: true
  60. # 验证码
  61. captcha:
  62. enable: true
  63. expire-seconds: 60
  64. # Knife4j
  65. springdoc:
  66. swagger-ui:
  67. path: /swagger-ui.html
  68. api-docs:
  69. path: /v3/api-docs
  70. knife4j:
  71. enable: true
  72. setting:
  73. language: zh_cn
  74. # Alipay(仅作 fallback — 正常运行时使用 pay_service_provider 表配置)
  75. alipay:
  76. app-id: ""
  77. app-private-key: ""
  78. alipay-public-key: ""
  79. server-url: https://openapi.alipay.com/gateway.do
  80. format: JSON
  81. charset: UTF-8
  82. sign-type: RSA2
  83. sandbox: false
  84. notify-url: ""
  85. return-url: ""
  86. max-retries: 3
  87. request-timeout: 30
  88. rate-limit: 100
  89. # Alibaba Cloud (OSS等)
  90. alibaba-cloud:
  91. access-key-id: LTAI5t5jHkQMY2T7V5n4ofMr
  92. access-key-secret: RYaofbQBRc93LC1oxCbgJGTVMCzNW4
  93. # File upload (OSS)
  94. file:
  95. upload-path: static/upload
  96. allowed-extensions: .gif,.jpg,.jpeg,.png,.ico,.svg,.xls,.xlsx,.pdf,.doc,.docx
  97. max-size: 10485760
  98. # Aliyun OSS
  99. aliyun:
  100. oss:
  101. endpoint: "oss-cn-beijing.aliyuncs.com"
  102. bucket: "hunanxiaojunzioss"
  103. access-key-id: "LTAI5t5jHkQMY2T7V5n4ofMr"
  104. access-key-secret: "RYaofbQBRc93LC1oxCbgJGTVMCzNW4"
  105. custom-domain: ""
  106. # Logging
  107. logging:
  108. file:
  109. path: ./logs
  110. level:
  111. com.payment.platform: info
  112. org.springframework.security: info