public interface JobHandler
top.dcenter.ums.security.core.tasks.config.ScheduleAutoConfiguration
会自动注册到 ScheduledTaskRegistrar 中.void run()
cronExp() 运行定时任务String cronExp()
0 * 2 * * ? 分别对应: second/minute/hour/day of month/month/day of week默认为: "0 * 2 * * ?", 凌晨 2 点启动定时任务, 支持分布式(分布式 IOC 容器中必须有
RedisConnectionFactory, 也就是说,
是否分布式执行依据 IOC 容器中是否有 RedisConnectionFactory)org.springframework.scheduling.support.CronSequenceGeneratorCopyright © 2021. All rights reserved.