Fancy
2024-07-19 1d27648989e69042db607d14c474d9ea90f86d7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.dy.pmsStation.config;
 
import com.dy.common.schedulerTask.SchedulerTaskSupport;
import com.dy.pmsStation.task.LogMoveTask;
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("logMoveTask", "station", LogMoveTask.class,
                null, 0, 5);
    }
}