<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-295  評論-26  文章-1  trackbacks-0

    public class PlatContextListener implements ServletContextListener{
    ??? private Timer timer = null;
    ??? /** 應用程序的根目錄 */
    ??? private static String contextPath = null;
    ???
    ??? /** Creates a new instance of PlatContextListener */
    ??? public PlatContextListener() {
    ??? }

    ??? public void contextInitialized(ServletContextEvent sce) {
    ??????? ServletContext sc = sce.getServletContext();
    ??????? contextPath = sc.getRealPath("").replace("\\", "/");
    ???????
    ??????? int nInterval=24*60*60*1000;
    ???????
    ??????? timer = new Timer(true);
    ???????
    ??????? //每天零晨3點執行清理工作
    ??????? Calendar calendar = Calendar.getInstance();
    ??????? calendar.set(Calendar.HOUR_OF_DAY,3);
    ??????? calendar.set(Calendar.MINUTE,0);
    ??????? calendar.set(Calendar.SECOND,0);
    ??????? Date time = calendar.getTime();
    ???
    ??????? timer.scheduleAtFixedRate(new PlatTimerClearTask(), time,nInterval);
    ???????

    ??? }

    ??? public void contextDestroyed(ServletContextEvent sce) {
    ??????? timer.cancel();
    ??? }
    ???
    ??? public static String getContextPath() {
    ??????? return contextPath;
    ??? }
    ???
    }



    大盤預測 國富論
    posted on 2007-10-11 14:50 華夢行 閱讀(162) 評論(0)  編輯  收藏 所屬分類: JDK
    主站蜘蛛池模板: 99久久这里只精品国产免费| 亚洲精品无码成人片久久| 在线免费播放一级毛片 | 国产免费牲交视频免费播放| 77777午夜亚洲| 亚洲第一区香蕉_国产a| 精品亚洲视频在线观看 | 亚洲国产午夜精品理论片在线播放| 国产精品亚洲精品日韩已满| 又粗又黄又猛又爽大片免费| 青娱乐免费视频在线观看| 久久黄色免费网站| 一级看片免费视频囗交| 亚洲日韩一区精品射精| 亚洲精品伊人久久久久| 亚洲资源在线视频| 亚洲国产日韩一区高清在线| 亚洲综合无码AV一区二区| 亚洲成A人片在线观看无码3D| 四虎在线免费播放| 成年人网站在线免费观看| 我的小后妈韩剧在线看免费高清版 | 99热亚洲色精品国产88| 亚洲熟妇无码爱v在线观看| 久久夜色精品国产嚕嚕亚洲av| 久久久久亚洲AV无码专区网站| 亚洲AV无码成H人在线观看 | 特色特黄a毛片高清免费观看| 亚洲精品理论电影在线观看| 国产精品高清视亚洲一区二区| 亚洲大片免费观看| 亚洲国产精品白丝在线观看| 久久亚洲AV成人出白浆无码国产| 亚洲va久久久噜噜噜久久天堂 | 免费A级毛片无码专区| 国产免费一区二区三区不卡| 国产在线观看xxxx免费| 免费看一区二区三区四区| 99在线热播精品免费99热| 免费无码一区二区三区蜜桃 | 亚洲第一福利网站|