Spring cron expression for every day 1:01:am

后端 未结 6 899
南方客
南方客 2020-11-28 00:08

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

6条回答
  •  感情败类
    2020-11-28 00:55

    Spring cron expression for every day 1:01:am

    @Scheduled(cron = "0 1 1 ? * *")

    for more information check this information:

    https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm

提交回复
热议问题