https://www.cnblogs.com/sueyyyy/p/9665154.html
@Component
@Lazy(false)
public class Test {
/**
* 与用户设置的使用率比较 spirng 调度
*
* @throws Exception
*/
@Scheduled(cron = "0/360 * * * * ? ") // 定时调度的时间
public static void task() throws Exception {
System.out.println("这是一个定时任务!!!");
}
}