I need the cron expression that runs every 15min from 5am to 6am(including). When i am using '0 */15 5 * * ?' it runs from 5 but ends at 5:45.I want to include 6am as well.Any inputs will be helpful.
Below you can find the example patterns from the spring forum:
second, minute, hour, day of the month, month, day(s) of week
You need to schedule it with two lines
"0 0/15 5 * * *"
"0 0 6 * * *"
EDIT:
Example
@Scheduled(cron = "0 0/15 5 * * *")
@Scheduled(cron = "0 0 6 * * *")
public String execute() {
return "success";
}