nexo-xxl-job-admin.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # server 配置
  2. spring:
  3. datasource:
  4. type: com.zaxxer.hikari.HikariDataSource
  5. driver-class-name: com.mysql.cj.jdbc.Driver
  6. url: ${datasource.job.url}
  7. username: ${datasource.job.username}
  8. password: ${datasource.job.password}
  9. hikari:
  10. auto-commit: true
  11. connection-test-query: SELECT 1
  12. connection-timeout: 10000
  13. idle-timeout: 30000
  14. max-lifetime: 900000
  15. maximum-pool-size: 30
  16. minimum-idle: 10
  17. pool-name: HikariCP
  18. validation-timeout: 1000
  19. mail:
  20. from: xxx@qq.com
  21. host: smtp.qq.com
  22. username: xxx@qq.com
  23. password: xxx
  24. port: 25
  25. properties:
  26. mail:
  27. smtp:
  28. auth: true
  29. socketFactory:
  30. class: javax.net.ssl.SSLSocketFactory
  31. starttls:
  32. enable: true
  33. required: true
  34. # mybatis 配置
  35. mybatis:
  36. mapper-locations: classpath:/mybatis-mapper/*Mapper.xml
  37. # Actuator 监控端点的配置项
  38. management:
  39. health:
  40. mail:
  41. enabled: false
  42. endpoints:
  43. web:
  44. exposure:
  45. include: '*'
  46. endpoint:
  47. health:
  48. show-details: ALWAYS
  49. logfile:
  50. external-file: ./logs/${spring.application.name}/console.log
  51. # xxljob系统配置
  52. xxl:
  53. job:
  54. # 鉴权token
  55. accessToken: xxl-job
  56. # 国际化
  57. i18n: zh_CN
  58. # 日志清理
  59. logretentiondays: 30
  60. triggerpool:
  61. fast:
  62. max: 200
  63. slow:
  64. max: 100