Spring cron expression for every day 1:01:am
show me the java code
@EnableScheduling@SpringBootApplicationpublicclassAwesomeApplication {
}
@Service@Slf4jpublicclassScheduleService {
@AutowiredprivateEventMappereventMapper;
// second, minute, hour, day of month, month, day(s) of week@Scheduled(cron = "0 * * * * *")
voidcheckEvents() {
...
}
}important note
zone matters in some cases
Scheduled(cron="0 1 1 * * *", zone="Europe/Istanbul")
publicvoiddoScheduledWork() {
//complete scheduled work
}cron format

Spring cron expression for every day 1:01:am
show me the java code
important note
zone matters in some cases
cron format