application.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. global-config:
  44. db-config:
  45. logic-delete-field: status
  46. logic-delete-value: "1"
  47. logic-not-delete-value: "0"
  48. configuration:
  49. map-underscore-to-camel-case: true
  50. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  51. # JWT
  52. jwt:
  53. secret: vgb0tnl9d58+6n-6h-ea&u^1#0sccp!794=krylxcjq75vzps$
  54. algorithm: HmacSHA256
  55. access-token-expire: 3600
  56. refresh-token-expire: 7200
  57. token-type: bearer
  58. sliding-expire: true
  59. # 验证码
  60. captcha:
  61. enable: true
  62. expire-seconds: 60
  63. # Knife4j
  64. springdoc:
  65. swagger-ui:
  66. path: /swagger-ui.html
  67. api-docs:
  68. path: /v3/api-docs
  69. knife4j:
  70. enable: true
  71. setting:
  72. language: zh_cn
  73. # Quartz
  74. spring.quartz:
  75. job-store-type: memory
  76. properties:
  77. org.quartz.scheduler.instanceName: PaymentScheduler
  78. org.quartz.threadPool.threadCount: 10
  79. # Alipay
  80. alipay:
  81. app-id: ""
  82. app-private-key: ""
  83. alipay-public-key: ""
  84. server-url: https://openapi.alipay.com/gateway.do
  85. format: JSON
  86. charset: UTF-8
  87. sign-type: RSA2
  88. sandbox: false
  89. notify-url: ""
  90. return-url: ""
  91. max-retries: 3
  92. request-timeout: 30
  93. rate-limit: 100
  94. # File upload
  95. file:
  96. upload-path: static/upload
  97. allowed-extensions: .gif,.jpg,.jpeg,.png,.ico,.svg,.xls,.xlsx
  98. max-size: 10485760
  99. # Logging
  100. logging:
  101. level:
  102. com.payment.platform: debug
  103. org.springframework.security: info