import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
@Configuration
@EnableScheduling
public class TestTask {
@Scheduled(cron = "0 0/1 * * * ?")
public void TestTask() {
//业务代码实现
}
}
10-28
641
08-02
1万+
01-28
647
07-26
1606