package com.dynamic.job.task; import java.text.SimpleDateFormat; import java.util.Date; public class MyTask { public void run() throws InterruptedException{ while(true){ System.out.println("current timer is "+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) ); Thread.sleep(1000); } } }
最近下载更多