@Scheduled(cron = "0 0 * * * ?")实现定时任务
//每一个小时执行一次
@Scheduled(cron = "0 0 * * * ?")
public void saveDailyScoreScheduled() {
try {
logger.info("loadDeviceEvents start>>>>" + new Date());
loadDeviceEvents(ZonedDateTime.now().toEpochSeco
转载
2018-01-08 15:41:34 ·
12171 阅读 ·
0 评论