- 博客(1)
- 收藏
- 关注
原创 springboot定时任务的两种实现方式
springboot定时任务的两种实现方式第一种@Scheduled第二种Quartz框架 spring自带定时任务处理器@Scheduled注解,所以springboot也可以用@Scheduled实现定时任务,第二种方式是使用Quartz框架 第一种@Scheduled 1.首先在你的springboot项目的pom文件中引入spring-boot-start-web, 2.然后在启动类里添加@EnableScheduling,开启定时任务 @SpringBootApplication @Enab
2020-10-22 14:55:18
194
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人