Wednesday, January 15, 2025
HomeProgrammingWhat is the Spring cron expression for scheduling a task to run...

What is the Spring cron expression for scheduling a task to run every day at 1:01 AM?

The Spring cron expression for scheduling a task to run every day at 1:01 AM is:

Copy code

0 1 1 * * ?

Here’s a breakdown of the expression:

0: Second (0th second of the minute)

1: Minute (1st minute of the hour)

See also  Reading a Plain Text File in Java

1: Hour (1 AM)

*: Day of the month (any day)

*: Month (any month)

?: Day of the week (no specific day)

This configuration ensures the task runs daily at 1:01 AM.

RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x