We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring cron expression for every day 1:01:am
@EnableScheduling @SpringBootApplication public class AwesomeApplication { } @Service @Slf4j public class ScheduleService { @Autowired private EventMapper eventMapper; // second, minute, hour, day of month, month, day(s) of week @Scheduled(cron = "0 * * * * *") void checkEvents() { ... } }
zone matters in some cases
Scheduled(cron="0 1 1 * * *", zone="Europe/Istanbul") public void doScheduledWork() { //complete scheduled work }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Spring cron expression for every day 1:01:am
show me the java code
important note
zone matters in some cases
cron format
The text was updated successfully, but these errors were encountered: