海外活动管理项目后端项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. spring:
  2. config:
  3. activate:
  4. on-profile: dev
  5. # ========== 数据源配置 (MySQL) ==========
  6. datasource:
  7. url: jdbc:mysql://39.101.133.168:3306/link?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
  8. username: link
  9. password: tEhdERkaGprEA7nT
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. hikari:
  12. maximum-pool-size: 20 # 默认一般是 10,根据并发量调整
  13. connection-timeout: 30000 # 连接超时时间(毫秒),默认 30s
  14. idle-timeout: 600000 # 空闲连接超时时间(默认 10 分钟)
  15. max-lifetime: 1800000 # 连接最大生命周期(默认 30 分钟)
  16. leak-detection-threshold: 5000 # 连接泄漏检测(毫秒,建议 5s)
  17. # ========== Redis 配置 ==========
  18. redis:
  19. host: 39.98.127.73
  20. port: 7001
  21. password: 2TOVfFeJ0pyi9Wtj
  22. database: 1 # 默认DB索引
  23. jedis:
  24. pool:
  25. max-active: 100 # 最大连接数
  26. max-wait: 300 # 最大等待时间
  27. max-idle: 20 # 最大空闲连接
  28. min-idle: 10 # 最小空闲连接