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);
| }
| }
|
|