定时任务配置
This commit is contained in:
parent
2b111c41cb
commit
7bf8ace5d9
|
|
@ -17,9 +17,9 @@ public class SaticScheduleTask {
|
|||
private TaskService taskService;
|
||||
|
||||
|
||||
// @Scheduled(cron = "0 01 02 * * ?")
|
||||
@Scheduled(cron = "0 01 07 * * ?")
|
||||
//或直接指定时间间隔,例如:5秒
|
||||
@Scheduled(fixedRate=600000)
|
||||
// @Scheduled(fixedRate=600000)
|
||||
private void configureTasks() {
|
||||
taskService.task();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user