spring boot 执行定时任务

在spring boot项目的启动类中添加@EnableScheduling注解,表示开启定时任务,如java @SpringBootApplication @EnableScheduling public class ApplicationStart { public static void main(String[] args) throws Exception {
相关文章
相关标签/搜索