<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久久国产综合精品| 免费三级毛片电影片| 久久精品九九亚洲精品| 国产激情免费视频在线观看 | 亚洲AV无码乱码在线观看性色扶 | 亚洲女人初试黑人巨高清| 91在线老王精品免费播放| 亚洲国产美女精品久久| 免费精品国产自产拍在| 久久亚洲国产成人影院| 精品免费国产一区二区| 美女被免费网站视频在线| 亚洲综合最新无码专区| 叮咚影视在线观看免费完整版| 久久久久久亚洲AV无码专区| 国产精品视频免费| 亚洲av日韩aⅴ无码色老头| 国产免费观看青青草原网站| jizz免费在线观看| 久久亚洲AV成人出白浆无码国产| 国产精品入口麻豆免费观看| 亚洲女女女同性video| 久久精品国产精品亚洲人人| 一级毛片免费不卡在线| 亚洲 暴爽 AV人人爽日日碰| 亚洲AV成人精品日韩一区18p| 久久福利青草精品资源站免费| 亚洲精品国产成人中文| 日本免费中文字幕在线看| 精品无码一级毛片免费视频观看| 亚洲图片在线观看| 曰皮全部过程视频免费国产30分钟 | 中文字幕免费在线看线人动作大片 | 99久久精品免费精品国产| 最新亚洲精品国偷自产在线| 亚洲 另类 无码 在线| 免费看又黄又无码的网站| 色窝窝亚洲av网| 亚洲国产精品婷婷久久| 亚洲av片一区二区三区|