I\'m trying to have my code execute on a fixed schedule, based on a Spring cron expression. I would like the code to be executed every day at 1:01:am. I tried the following
You can use annotate your method with @Scheduled(cron ="0 1 1 * * ?").
@Scheduled(cron ="0 1 1 * * ?")
0 - is for seconds
1- 1 minute
1 - hour of the day.