摘要:
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
阅读(413)
评论(0)
推荐(0)
浙公网安备 33010602011771号