自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-06-08 f1a3b627bb7b048ebeaba3fcbc1ded3a287ec7ab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.zy.asrs.task;
 
import com.zy.asrs.task.handler.TestHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
public class TestScheduler {
    @Autowired
    private TestHandler testHandler;
 
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute(){
        testHandler.start();
    }
 
}