application.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. server:
  2. port: 8081
  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. datasource:
  14. type: com.alibaba.druid.pool.DruidDataSource
  15. druid:
  16. driver-class-name: org.postgresql.Driver
  17. url: jdbc:postgresql://47.94.88.244:5432/payment_platform_prod?currentSchema=public
  18. username: admin
  19. password: 'xjz#123321'
  20. initial-size: 5
  21. min-idle: 5
  22. max-active: 20
  23. max-wait: 60000
  24. validation-query: SELECT 1
  25. test-while-idle: true
  26. test-on-borrow: false
  27. test-on-return: false
  28. data:
  29. redis:
  30. host: 47.94.88.244
  31. port: 6379
  32. database: 1
  33. password: '123456#xjz'
  34. timeout: 10s
  35. lettuce:
  36. pool:
  37. max-active: 20
  38. max-idle: 10
  39. min-idle: 5
  40. mybatis-plus:
  41. mapper-locations: classpath*:/mapper/**/*.xml
  42. type-aliases-package: com.payment.platform.module
  43. configuration:
  44. map-underscore-to-camel-case: true
  45. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  46. # JWT
  47. jwt:
  48. secret: vgb0tnl9d58+6n-6h-ea&u^1#0sccp!794=krylxcjq75vzps$
  49. algorithm: HmacSHA256
  50. access-token-expire: 3600
  51. refresh-token-expire: 7200
  52. token-type: bearer
  53. sliding-expire: true
  54. # 验证码
  55. captcha:
  56. enable: true
  57. expire-seconds: 60
  58. # Knife4j
  59. springdoc:
  60. swagger-ui:
  61. path: /swagger-ui.html
  62. api-docs:
  63. path: /v3/api-docs
  64. knife4j:
  65. enable: true
  66. setting:
  67. language: zh_cn
  68. # Quartz
  69. spring.quartz:
  70. job-store-type: memory
  71. properties:
  72. org.quartz.scheduler.instanceName: PaymentScheduler
  73. org.quartz.threadPool.threadCount: 10
  74. # Alipay
  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. # File upload
  90. file:
  91. upload-path: static/upload
  92. allowed-extensions: .gif,.jpg,.jpeg,.png,.ico,.svg,.xls,.xlsx
  93. max-size: 10485760
  94. # Logging
  95. logging:
  96. level:
  97. com.payment.platform: debug
  98. org.springframework.security: info