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){}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章