SpringBoot手动控制启动定时任务
在SpringBoot中启动定时任务只需要添加注解 @EnableScheduling 即可搞定, 然后再Job类上面添加 @Component 和 @Scheduled 在任务的类上写@Component 在任务方法上写@Sched…
在SpringBoot中启动定时任务只需要添加注解 @EnableScheduling 即可搞定, 然后再Job类上面添加 @Component 和 @Scheduled 在任务的类上写@Component 在任务方法上写@Sched…