This commit is contained in:
xiangwb
2018-04-23 15:20:37 +08:00
parent 9229197146
commit 8392915e70
2 changed files with 3 additions and 3 deletions
@@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.Scheduled;
@Configuration
@EnableScheduling // 启用定时任务
public class SchedulingConfig {
private static final Logger logger = LoggerFactory.getLogger(SchedulingConfig.class);
private final Logger logger = LoggerFactory.getLogger(SchedulingConfig.class);
@Scheduled(cron = "0 0 6 * * ? ")//每天6点开启定时任务
public void scheduler() {