智慧保安后台管理-外网项目备份
钟日健
2022-01-25 28bb32626a4a20575bb0e24f5d5ab6f41d597280
定时任务修改
1 files modified
4 ■■■■ changed files
src/main/java/org/springblade/modules/crontab/Crontab.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/crontab/Crontab.java
@@ -24,8 +24,8 @@
     * 定时任务,每天凌晨1点执行一次,
     * 自动处理之前报了名,申请了考试又没有去考试的,做缺考标记,并将报名状态修改为已取消报名
     */
//    @Scheduled(cron = "0 0 23 * * ?")
    @Scheduled(cron = "*/10 * * * * ?")
    @Scheduled(cron = "0 0 23 * * ?")
//    @Scheduled(cron = "*/10 * * * * ?")
    @GetMapping("/examApplyStatus")
    public void examApplyStatus(){
        System.out.println("定时任务1:执行时间:"+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));