分布式任务调度 - xinwu-yang/cube-java GitHub Wiki

使用说明

  1. 引入依赖
<dependency>
    <groupId>com.tievd.cube.starter</groupId>
    <artifactId>starter-job</artifactId>
</dependency>
  1. 配置
cube:
  xxljob:
    enabled: true
    adminAddresses: http://25.30.15.85:8888/xxl-job-admin
    appname: ${spring.application.name}
    accessToken: 'chengxun'
    address: 127.0.0.1:9999 # 任务执行器的IP和端口
    ip: 25.30.15.90 # 注册到调度中心的IP
    port: 9999 # 注册到调度中心的端口
    logPath: logs/cube/job/jobhandler/
    logRetentionDays: 30
  1. 编码

  1. 执行

  1. 执行结果

⚠️ **GitHub.com Fallback** ⚠️