Spring Task Scheduler Quartz time Configuration

Source: Internet
Author: User
About the cronexpression expression, here's how: field allows special characters to be allowed in seconds 0-59,-*/min 0-59,-*/hour 0-23,-*/Date 1-31,-*? /L W C month 1-12 or JAN-DEC,-*/week 1-7 or Sun-sat,-*? /L C # Year (optional) leave blank, 1970-2099,-*/Expression meaning "0 0 12 * *?" 12 o'clock Noon every day "0 15 10?" * * "10:15 per day" 0 15 10 * * "10:15" 0 15 10 * *? * "Trigger every day 10:15" 0 15 10 * *? 2005 "2005 Years a day 10:15 trigger" 0 * 14 * *? "Every 1 minutes from 2 o'clock in the afternoon to 2:59" 0 0/5 14 * *? "triggers every 5 minutes during daily 2 o'clock in the afternoon to 2:55 0 0/5 14 , 18 * *? "every 5 minutes from 2 o'clock in the afternoon to 2:55 and 6 o'clock in the afternoon to 6:55" 0 0-5 14 * *? "Every 1 minutes during daily 2 o'clock in the afternoon to 2:05 0 10,44 14? 3 WED "0 15 10 in Wednesday 2:10 and 2:44 per year in March"? * Mon-fri "from Monday to Friday 10:15" 0 15 10 15 *? "15th 10:15" 0 0 L *? "The last day of the month is triggered by 10:15" 15, 10? * 6L "last Friday 10:15 trigger" 0 15 10? * 6L 2002-2005 "2002 to 2005 the last of the monthly Friday 10:15 trigger" 0 15 10?   
* 6#3 "The third Friday 10:15 per month triggers every morning 6 pips 0 6 * * * Every two hours 0 */2 * * * 11 o'clock to 8 hours per two hour in the morning, eight points 0 23-7/2,8 * * * * Every month, 4th, and every week.Monday three morning 11 point 0 11 4 * 1-3 January 1 morning 4 point 0 4 1 1 *</span> "0/5 * * * *?" 5 Seconds to start the last time, don't forget to configure Spring in Web. xml:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.