2019年6月18日

SpringBoot定时任务@Scheduled

摘要: SpringBoot定时任务主要由两个注解完成。 @Scheduled加在方法上面。 @EnableScheduling加在类上面。可以是Application类,也可以是@Component类,还可以是@Controller类等。 如下: 如果@EnableScheduling不想加在Applic 阅读全文

posted @ 2019-06-18 22:51 乐之者v 阅读(2588) 评论(0) 推荐(0)

导航