开启注解扫描在application中开启注解扫描//定时任务注解扫描@EnableScheduling//异步任务注解扫描@EnableAsync定时任务privateintnum=1;@Scheduled(cron="0/1****1-7")publicvoidSchedul
开启注解扫描在application中开启注解扫描//定时任务注解扫描@EnableScheduling//异步任务注解扫描@EnableAsync定时任务privateintnum=1;@Scheduled(cron="0/1****1-7")publicvoidSchedul