package com.lid.servlet; import java.io.File; import java.util.TimerTask; public class MyTask extends TimerTask { private File dir=null; public MyTask(){}; public MyTask(File dir){ this.dir=dir; } public void run() { // System.out.println("call at " + (new Date())); // TODO 此处添加具体任务代码 MyTest.deleteDir(dir); System.out.println("执行*****"); } }
最近下载更多