spring-cron 表达式

版本:spring-context: spring-context-4.3.3.RELEASE.

类:org.springframework.scheduling.support.CronSequenceGenerator

解析cron表达式的方法:parse()

cron表达式要求: 

1. 不支持年份,从秒开始,长度为6

2.不支持类似每个月的最后一天(L)等表达式

处理schedule注解的方法类:

类:org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor

方法:void processScheduled(Scheduled scheduled, Method method, Object bean){}

发布了7 篇原创文章 · 获赞 1 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/javadeaihaozhe/article/details/105293447
今日推荐