海外活动管理项目后端项目
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.

60 lines
1.8 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. server:
  2. port: 12699 # 服务端口
  3. forward-headers-strategy: native # 全局生效
  4. spring:
  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. pool-name: LotteryHikariCP
  13. maximum-pool-size: 10 # 连接池大小
  14. connection-timeout: 30000
  15. # ========== Redis 配置 ==========
  16. # redis:
  17. # host: 127.0.0.1
  18. # port: 6379
  19. # password: # 若无密码则留空
  20. # database: 0 # 默认DB索引
  21. # jedis:
  22. # pool:
  23. # max-active: 8 # 最大连接数
  24. # max-wait: 5000ms # 最大等待时间
  25. # max-idle: 4 # 最大空闲连接
  26. # min-idle: 1 # 最小空闲连接
  27. # timeout: 3000ms # 连接超时时间
  28. # ========== MyBatis 配置(如果使用MyBatis代替JPA) ==========
  29. mybatis:
  30. mapper-locations: classpath:mapper/*.xml # XML映射文件路径
  31. type-aliases-package: com.lottery.entity # 实体类包路径
  32. configuration:
  33. map-underscore-to-camel-case: true # 开启驼峰命名转换
  34. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印SQL日志
  35. logging:
  36. config: classpath:logback-spring.xml
  37. level:
  38. root: INFO
  39. org.springframework: WARN
  40. com.link: INFO
  41. # ========== 自定义配置(示例) ==========
  42. lottery:
  43. jwt:
  44. #用户端JWT
  45. user-secret-key: willier_need_at_least_32_chars_secure_key_12345
  46. user-ttl: 7200000
  47. user-token-name: authentication
  48. max-draw-times: 3 # 用户每日最大抽奖次数
  49. spring:
  50. jackson:
  51. date-format: yyyy-MM-dd HH:mm:ss
  52. time-zone: GMT+8