提交 2533ba00 编写于 作者: yubinCloud's avatar yubinCloud

10-6 为定时任务增加日志记录

上级 c8cda227
......@@ -21,8 +21,10 @@ public class DocJob {
*/
@Scheduled(cron = "5/30 * * * * ?")
public void cron() {
System.out.println("Starting a doc job");
LOG.info("更新电子书下的文档数据开始");
long start = System.currentTimeMillis();
docService.updateEbookFooter();
LOG.info("更新电子书下的文档数据结束,耗时:{}毫秒", System.currentTimeMillis() - start);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册