ruoyi-resource.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. spring:
  2. datasource:
  3. dynamic:
  4. # 设置默认的数据源或者数据源组,默认值即为 master
  5. primary: master
  6. datasource:
  7. # 主库数据源
  8. master:
  9. type: ${spring.datasource.type}
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. url: ${datasource.system-master.url}
  12. username: ${datasource.system-master.username}
  13. password: ${datasource.system-master.password}
  14. mail:
  15. enabled: false
  16. host: smtp.163.com
  17. port: 465
  18. # 是否需要用户名密码验证
  19. auth: true
  20. # 发送方,遵循RFC-822标准
  21. from: xxx@163.com
  22. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  23. user: xxx@163.com
  24. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  25. pass: xxxxxxxxxx
  26. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  27. starttlsEnable: true
  28. # 使用SSL安全连接
  29. sslEnable: true
  30. # SMTP超时时长,单位毫秒,缺省值不超时
  31. timeout: 0
  32. # Socket连接超时值,单位毫秒,缺省值不超时
  33. connectionTimeout: 0
  34. sms:
  35. enabled: false
  36. # 阿里云 dysmsapi.aliyuncs.com
  37. # 腾讯云 sms.tencentcloudapi.com
  38. endpoint: "dysmsapi.aliyuncs.com"
  39. accessKeyId: xxxxxxx
  40. accessKeySecret: xxxxxx
  41. signName: 测试
  42. # 腾讯专用
  43. sdkAppId: