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