notes
2, SpringBoot actual common configuration timer task
Introduction: SpringBoot expressions common configuration tasks and the timing generator line
1, cron timer task expression @Scheduled (cron = "* / 1 * * * * *") denotes per
1) crontab tool https://tool.lu/crontab/
2, fixedRate: How often performed once the timing (after the last execution start time point xx seconds performed again;)
. 3, FIXEDDELAY: the last time point after execution performed again xx seconds
4, fixedDelayString: a string can be specified by the configuration file
Start
@Scheduled comment
cron expression annotation
delay
modified to perform every second
two seconds each time. However, the method body which sleep 4 seconds 6 seconds before is performed once
fixDelay
6 seconds
string