package com.fdkankan.download.schedule; import com.fdkankan.download.service.ISceneDownLoadService; import com.fdkankan.redis.util.RedisUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Slf4j @Component public class ScheduleJob { @Autowired RedisUtil redisUtil; @Autowired ISceneDownLoadService sceneDownLoadService; @Scheduled(cron = "0/5 * * * * ? ") public void job4SceneDownload() throws Exception { sceneDownLoadService.process(); } @Scheduled(cron = "0/5 * * * * ? ") public void job4SceneV3Download() throws Exception { sceneDownLoadService.process(); } }