ruoyi-resource.yml 1.4 KB

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