2013年10月8日
摘要: spring注解方式的定时任务配置:第一步:spring配置文件 第二步:java代码import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class Timer { @Scheduled(cron = "* 0/20 * * * ... 阅读全文
posted @ 2013-10-08 13:21 道法自然smile 阅读(397) 评论(0) 推荐(0) 编辑