package
com.Thread;
import
java.util.Date;
import
java.util.Timer;
import
java.util.TimerTask;
//任务调度 开源框架----quartz
public
class
TimeDome {
public
static
void
main(String[] args) {
Timer timer =
new
Timer();
timer.schedule(
new
TimerTask() {
@Override
public
void
run() {
System.
out
.println(
"so easy..."
);
}
},
new
Date(System.currentTimeMillis()+ 1000),1000);
}
}