whyclxw
2 天以前 9e428b3f4a90df003848d28aca5f358c7b6ef969
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.whyc.schedule;
 
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@EnableScheduling
@Component
public class CommonSchedule {
 
 
    /**数据4秒钟获取一次*/
    @Scheduled(cron = "0/4 * * * * ? ")
    public void do1(){
 
    }
 
 
}