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

 

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