首页>代码>spring动态配置定时器quartz2.x教程详解>/dynamic-job/src/main/java/com/dynamic/job/factory/DataWorkContext.java
package com.dynamic.job.factory; import java.util.ArrayList; import java.util.List; public class DataWorkContext { public static List<ScheduleJob> getAllJob() { List<ScheduleJob> list = new ArrayList<ScheduleJob>(); for (int i = 0; i < 5; i++) { ScheduleJob job = new ScheduleJob(); job.setJobId("10001" + i); job.setJobName("data_import" + i); job.setJobGroup("dataWork" + i); job.setJobStatus("1"); job.setCronExpression("0/5 * * * * ?"); job.setDesc("数据导入任务" + i); list.add(job); } return list; } }
最近下载更多