摘要: 下面的例子是在12:30:00开始每12个小时执行一次final ScheduledExecutorService scheduledExecutor = Executors.newSingleThreadScheduledExecutor();String executeTime="12:30:00";long periodTime=43200000;long initialDelay=0;try { DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); DateForma 阅读全文
posted @ 2012-03-06 11:47 RocTian 阅读(1517) 评论(1) 推荐(0) 编辑