package com.jilongda.optometry.schedule;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @Description 系统定时任务类
|
* @Author xiaochen
|
* @Date 2022/7/26/02614:00
|
*/
|
@Component
|
@EnableScheduling
|
public class SystemSchedule {
|
|
@Scheduled(cron = "0 0 0 ? * SUN")
|
private void updateProduct() {
|
}
|
|
}
|