application-dev.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. server:
  2. port: 8080
  3. # \u8BBE\u7F6E\u5F00\u53D1\u73AF\u5883
  4. spring:
  5. # profiles:
  6. # active: dev
  7. main:
  8. allow-circular-references: true
  9. #\u6570\u636E\u5E93\u914D\u7F6E\u94FE\u63A5
  10. datasource:
  11. username: root
  12. password: root
  13. url: jdbc:mysql://localhost:3306/share_videos?characterEncoding=UTF-8&share_videosuseSSL=false&useUnicode=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
  14. driver-class-name: com.mysql.cj.jdbc.Driver
  15. cache:
  16. type: redis
  17. redis:
  18. # \u7F13\u5B58\u65F6\u95F4 600s
  19. time-to-live: 600000
  20. key-prefix: SPRING_CACHE_
  21. use-key-prefix: true
  22. cache-null-values: true
  23. redis:
  24. host: localhost
  25. port: 6379
  26. # password: chuanghai.redis
  27. password: redis.root
  28. jedis:
  29. pool:
  30. max-active: 100
  31. max-idle: 100
  32. min-idle: 100
  33. max-wait: 60000s
  34. # \u914D\u7F6E\u65E5\u5FD7
  35. mybatis-plus:
  36. mapper-locations: classpath:/mapper/video/*.xml
  37. configuration:
  38. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  39. # \u914D\u7F6E\u903B\u8F91\u5220\u9664
  40. global-config:
  41. db-config:
  42. logic-delete-value: 1
  43. logic-not-delete-value: 0
  44. #腾讯云
  45. tencentcloud:
  46. appID: 123456
  47. appKey: abcd
  48. templateId: "123456789"
  49. smsSign: 123456
  50. smsMin: 2