摘要: SpringBoot实现定时任务 SpringBoot创建定时任务,目前主要有以下三种实现方式: 基于注解(@Scheduled): 基于注解@Scheduled默认为单线程,开启多个任务时,任务的执行时机会受上一个任务执行时间的影响; 基于接口(SchedulingConfigurer): 用于实 阅读全文
posted @ 2022-08-20 18:16 Hello、Lin 阅读(778) 评论(0) 推荐(0)