Fancy
2024-07-30 bf2368aba60129e66bcac80e60d22dc86ae5c1a3
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);
    }
}