application-test.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # 数据源配置
  2. spring:
  3. datasource:
  4. dynamic:
  5. strict: true
  6. primary: base
  7. datasource:
  8. base:
  9. url: jdbc:mysql://36.134.91.96:12333/sd_base?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai
  10. username: root
  11. password: Fjhx@pwd123
  12. business:
  13. url: jdbc:mysql://36.134.91.96:12333/sd_business?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=Asia/Shanghai
  14. username: root
  15. password: Fjhx@pwd123
  16. # redis 配置
  17. redis:
  18. # 地址
  19. host: 36.134.91.96
  20. # 端口,默认为6379
  21. port: 13444
  22. # 数据库索引
  23. database: 3
  24. # 密码
  25. password: Fjhx@pwd123
  26. # 连接超时时间
  27. timeout: 10s
  28. lettuce:
  29. pool:
  30. # 连接池中的最小空闲连接
  31. min-idle: 0
  32. # 连接池中的最大空闲连接
  33. max-idle: 8
  34. # 连接池的最大数据库连接数
  35. max-active: 8
  36. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  37. max-wait: -1ms
  38. server:
  39. servlet:
  40. context-path: /test-api
  41. # token配置
  42. token:
  43. # 令牌自定义标识
  44. header: Authorization
  45. # 令牌密钥
  46. secret: abcdefghijklmnopqrstuvwxyz
  47. # 令牌有效期(默认30分钟)
  48. expireTime: 2880