springboot+mybatis+mysql+Quartz实现任务调度(定时任务,实现可配置)
无需配置,直接写死的使用importorg.springframework.scheduling.annotation.Scheduled;@Slf4j@ComponentpublicclassTest{@AutowiredprivateStudentServicestudentService;@Scheduled(cron="0/5****?")//每5秒执行一次publicvoidexecut