摘要: 1.pom.xml 不需要添加任务多余的包,只需要基本SpringBoot包即可 2. Application.class文件需要添加任务定时开启的注解:@EnableScheduling 3.编写自己的定时器任务类 @Servicepublic class ScheduleService { @S 阅读全文
posted @ 2025-03-11 11:19 狗狗听话 阅读(34) 评论(0) 推荐(0)