1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | package com.dy.pmsProduct.config; 
 |    
 |  import com.dy.common.schedulerTask.SchedulerTaskSupport; 
 |  import com.dy.pmsProduct.taskPlan.AssemblyPlanTask; 
 |  import org.springframework.boot.CommandLineRunner; 
 |  import org.springframework.stereotype.Component; 
 |    
 |  @Component 
 |  public class AppStartupRunner implements CommandLineRunner { 
 |    
 |      @Override 
 |      public void run(String... args) throws Exception { 
 |  //        SchedulerTaskSupport.addDailyJob("assemblyPlanTask", "taskPlan", AssemblyPlanTask.class, 
 |  //                null, 11, 2); 
 |          SchedulerTaskSupport.addMinutelyJob("assemblyPlanTask", "taskPlan", AssemblyPlanTask.class, 
 |                  null, 20, 5,-1); 
 |      } 
 |  } 
 |  
  |