spring boot 執行定時任務

在spring boot項目的啓動類中添加@EnableScheduling註解,表示開啓定時任務,如java @SpringBootApplication @EnableScheduling public class ApplicationStart { public static void main(String[] args) throws Exception {
相關文章
相關標籤/搜索