java定时任务-成都快上网建站

java定时任务

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class ScheduledService {
private static final Logger log = LoggerFactory.getLogger(ScheduledService.class);

创新互联公司服务项目包括章贡网站建设、章贡网站制作、章贡网页制作以及章贡网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,章贡网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到章贡省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

/**
 * 每天凌晨执行一次 
 */
@Scheduled(cron = "0 0 0 * * ?")
public void scheduled(){

}

}


网站标题:java定时任务
转载来于:http://kswjz.com/article/ieishp.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流