application-dev.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --- # 监控配置
  2. spring:
  3. boot:
  4. admin:
  5. # Spring Boot Admin Client 客户端的相关配置
  6. client:
  7. # 增加客户端开关
  8. enabled: true
  9. # 设置 Spring Boot Admin Server 地址
  10. url: http://localhost:9090/admin
  11. instance:
  12. prefer-ip: true # 注册实例时,优先使用 IP
  13. username: ruoyi
  14. password: 123456
  15. --- # 数据库配置
  16. spring:
  17. datasource:
  18. type: com.zaxxer.hikari.HikariDataSource
  19. driver-class-name: com.mysql.cj.jdbc.Driver
  20. url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
  21. username: root
  22. password: root
  23. hikari:
  24. auto-commit: true
  25. connection-test-query: SELECT 1
  26. connection-timeout: 10000
  27. idle-timeout: 30000
  28. max-lifetime: 900000
  29. maximum-pool-size: 30
  30. minimum-idle: 10
  31. pool-name: HikariCP
  32. validation-timeout: 1000
  33. --- # 邮件配置
  34. spring:
  35. mail:
  36. from: xxx@qq.com
  37. host: smtp.qq.com
  38. username: xxx@qq.com
  39. password: xxx
  40. port: 25
  41. properties:
  42. mail:
  43. smtp:
  44. auth: true
  45. socketFactory:
  46. class: javax.net.ssl.SSLSocketFactory
  47. starttls:
  48. enable: true
  49. required: true