ruoyi-resource.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # oracle:
  15. # type: ${spring.datasource.type}
  16. # driverClassName: oracle.jdbc.OracleDriver
  17. # url: ${datasource.system-oracle.url}
  18. # username: ${datasource.system-oracle.username}
  19. # password: ${datasource.system-oracle.password}
  20. # hikari:
  21. # connectionTestQuery: SELECT 1 FROM DUAL
  22. # postgres:
  23. # type: ${spring.datasource.type}
  24. # driverClassName: org.postgresql.Driver
  25. # url: ${datasource.system-postgres.url}
  26. # username: ${datasource.system-postgres.url}
  27. # password: ${datasource.system-postgres.url}
  28. mail:
  29. enabled: false
  30. host: smtp.163.com
  31. port: 465
  32. # 是否需要用户名密码验证
  33. auth: true
  34. # 发送方,遵循RFC-822标准
  35. from: xxx@163.com
  36. # 用户名(注意:如果使用foxmail邮箱,此处user为qq号)
  37. user: xxx@163.com
  38. # 密码(注意,某些邮箱需要为SMTP服务单独设置密码,详情查看相关帮助)
  39. pass: xxxxxxxxxx
  40. # 使用 STARTTLS安全连接,STARTTLS是对纯文本通信协议的扩展。
  41. starttlsEnable: true
  42. # 使用SSL安全连接
  43. sslEnable: true
  44. # SMTP超时时长,单位毫秒,缺省值不超时
  45. timeout: 0
  46. # Socket连接超时值,单位毫秒,缺省值不超时
  47. connectionTimeout: 0
  48. sms:
  49. enabled: false
  50. # 阿里云 dysmsapi.aliyuncs.com
  51. # 腾讯云 sms.tencentcloudapi.com
  52. endpoint: "dysmsapi.aliyuncs.com"
  53. accessKeyId: xxxxxxx
  54. accessKeySecret: xxxxxx
  55. signName: 测试
  56. # 腾讯专用
  57. sdkAppId: