Spring cron expression for every day 1:01:am

To create a cron expression that triggers an event every day at 1:01 AM, you can use the following cron expression:

1 1 * * *

This cron expression consists of 6 fields:

  1. minute (1)
  2. hour (1)
  3. day of month (*)
  4. month (*)
  5. day of week (*)
  6. year (*)

The * wildcard indicates that the event should be triggered for all values of the field. In this case, the event will be triggered every day of the month, every month, and every day of the week.

You can use this cron expression in a Spring application by annotating a method with @Scheduled and setting the cron attribute to the expression:

@Scheduled(cron = "1 1 * * *")
public void myTask() {
    // task logic here
}

I hope this helps! Let me know if you have any questions.