package com.zy.asrs.task; import com.zy.asrs.task.core.ReturnT; import org.springframework.scheduling.annotation.Scheduled; import static org.reflections.Reflections.log; public class ExceptionNoticeScheduler { @Scheduled(cron = "0/1 * * * * ? ") private void execute(){ ReturnT returnT = exceptionNoticeHandler.start(); if (!returnT.isSuccess()) { log.error(returnT.getMsg()); } } }