application.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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不属于spring
  36. mybatis-plus:
  37. mapper-locations: classpath:/mapper/video/*.xml
  38. configuration:
  39. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  40. # \u914D\u7F6E\u903B\u8F91\u5220\u9664
  41. global-config:
  42. db-config:
  43. logic-delete-value: 1
  44. logic-not-delete-value: 0
  45. #腾讯云
  46. tencentcloud:
  47. secretID: AKIDDPo13qZCZqtgJsGQL7AyYu1wc7QVMyLl #签名
  48. secretKey: JPGrELFySiv0pOrKOPEwSnulOq9IPPDr #密钥
  49. sdkAppId: 1400813506 #短信应用ID
  50. signName: 华仁享学教育 #短信签名内容
  51. templateId: 1770016 #模板 ID
  52. smsMin: 1