it's strange, i setup corn as
@Scheduled(cron= "0 0/10 * * * ? ")
It did trigger every 10 minutes, but the issue is task runs each second.
it's strange, i setup corn as
@Scheduled(cron= "0 0/10 * * * ? ")
It did trigger every 10 minutes, but the issue is task runs each second.
If you want to execute every 10 seconds, you should have this:
@Scheduled(cron= "0/10 * * ? * *")
© 2022 - 2024 — McMap. All rights reserved.