![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
定时任务
yangyh22
这个作者很懒,什么都没留下…
展开
-
@Scheduled 读取配置文件
只是测试用的@Log4j@Configuration@PropertySource(value = "classpath:application.yml")public class SchedulerConfig { @Scheduled(cron = "${q}") public void update() throws Exception { log.error("[q]"); }}在你的...原创 2018-06-28 12:00:45 · 15355 阅读 · 1 评论 -
quartz 定时任务动态管理
MyJob.javapackage com.hjh.mall.quartz.promotion; import java.util.Date; import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException; /** * @Project: mall-uag * ...原创 2018-06-28 13:57:09 · 1212 阅读 · 0 评论