定时任务笔记 顺然 2021-09-18 125 阅读1分钟 @Slf4j @Component @EnableScheduling @EnableAsync public class HelloSchedule { @Async @Scheduled(cron = "* * * * * ?") public void hello(){ log.info("hello..."); } }