怎么在Web程序中实现定时运行的功能
如何在Web程序中实现定时运行的功能?if(isRunning){??????????????????????????????}??????????}?????????
如何在Web程序中实现定时运行的功能?
if(isRunning){??????
????????????????????????}??????????}???????????}??????
在web.xml配置这个servlet为服务启动时就调用servlet?
< servlet >?
???? < servlet-name >taskservlet< / servlet-name >?
??? < servlet-class >com.task< /servlet-class >?
??? < init-param >?
???? < param-name >startTask< /param-name >?
???? < param-value >true< /param-value >?
??? < /init-param >?
??? < init-param >?
???? < param-name >intervalTime< /param-name >?
???? < param-value >1< /param-value >?
??? < /init-param >?
??? < load-on-startup >300< /load-on-startup >?
? < /servlet >?