For example, this can be accomplished through the @Scheduled(fixedRate = 900000) annotation.
@Scheduled(fixedRate = 900000)
0 0 5 ? * MON will be executed at 5 o'clock on Monday
1 1 1 0 0 2
Run at 1:01:1 on Tuesday
@Scheduled(cron="0 0 0 ? * MON")
0 0 5 ? * MON will be executed at 5 o'clock on Monday
Run at 1:01:1 on Tuesday