src/main/java/org/springblade/modules/crontab/Crontab.java
@@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.GetMapping; /** * 定时任务 @@ -23,6 +24,7 @@ */ @Scheduled(cron = "* * 1 * * ?") // @Scheduled(cron = "*/30 * * * * ?") @GetMapping("/examApplyStatus") public void examApplyStatus(){ //自动处理之前报了名,申请了考试又没有去考试的,做缺考标记,并将报名状态修改为已取消报名 trainingRegistrationService.examApplyStatus();