POM文件
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>2.2.0</version>
</dependency>
properties文件
###xxl-job executor log-path
xxl.job.executor.logpath=/home/container/logs/xxl-job-logs/
### xxl-job admin address list, such as "http://address or "http://address0l,http://address02'
xxl.job.admin.addresses-http://192.168.1.183:18080/
xxl-job-adminxxl.job.executor.appname-data-job-statistics-executorxxl.job.executor.port=19089
XXLJOB的任务类
![](https://img-blog.csdnimg.cn/6164acb1a0ba4b32a3829026a3675d75.png)
控制台配置
1、创建执行器,如果是自动注册 就不需要手动填写地址
![](https://img-blog.csdnimg.cn/cb5aa55c856d4dac877ce3dd4340b7cc.png)
2、定时任务调度的任务创建
![](https://img-blog.csdnimg.cn/d31d2f1729a04ead8c1d03598cb1c88b.png)
3、执行一次
![](https://img-blog.csdnimg.cn/a0fb5fed1d4d480d9499d3c06455bbd0.png)
4、查看日志
![](https://img-blog.csdnimg.cn/213c0e4d6ea645be8ba2b62f88c76ec0.png)
![](https://img-blog.csdnimg.cn/f05685b790e545fbb01c13d5ead75ab6.png)
到这里就说明定时任务调度成功!完结,撒花~~~~~~