xxljob分布式定时任务框架与系统的接入


系统接入

  1. 自己项目上引入xxl-job-core的maven依赖
  2. 在MySQL中执行/xxl-job/doc/db/tables_xxl_job.sql的SQL脚本
  3. 从Gitee或GitHub下载xxl-job的源码,修改xxl-job-admin调度中心的数据库配置,启动xxl-job-admin项目。
  4. 在自己项目上添加xxl-job相关的配置信息
  5. 使用@XxlJob注解修饰方法编写定时任务的相关逻辑



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • 2379. Minimum Recolors to Get K Consecutive Black Blocks
  • 2471. Minimum Number of Operations to Sort a Binary Tree by Level
  • 1387. Sort Integers by The Power Value
  • 2090. K Radius Subarray Averages
  • 2545. Sort the Students by Their Kth Score