因為專注,所以專業

          我的Java Blog

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            21 隨筆 :: 30 文章 :: 6 評論 :: 0 Trackbacks

          Java

               摘要: 利用SVN信息制作升級包小工具  閱讀全文
          posted @ 2012-06-01 16:06 kevin.zhan 閱讀(296) | 評論 (0)  編輯

               摘要: (非原創)
          The method getRealPath(String) from the type ServletRequest is deprecated

          出現該警告,該方法已經不能使用了

          Deprecated. As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead.

          可以使用下面的方法來替代上面的方法

          request.getSession().getServletContext().getRealPath() 得到站點的絕對地址

          在servlet或者struts中還可以這樣:

          this.getServletContext().getRealPath("/");

          this.getServlet().getServletContext().getRealPath("/");
            閱讀全文
          posted @ 2010-12-30 11:04 kevin.zhan 閱讀(6728) | 評論 (0)  編輯

          posted @ 2009-04-20 17:47 kevin.zhan 閱讀(735) | 評論 (0)  編輯

          posted @ 2008-11-17 18:42 kevin.zhan 閱讀(4802) | 評論 (0)  編輯

          posted @ 2008-05-12 15:22 kevin.zhan 閱讀(482) | 評論 (0)  編輯

          主站蜘蛛池模板: 临夏县| 梅州市| 阳原县| 维西| 东源县| 利川市| 江陵县| 民县| 化州市| 长兴县| 长治市| 正安县| 仙居县| 夏津县| 阳东县| 江油市| 临武县| 四会市| 云梦县| 仪陇县| 上高县| 长兴县| 嘉鱼县| 东乡县| 晴隆县| 江津市| 稷山县| 阿拉尔市| 清苑县| 荣昌县| 乐昌市| 监利县| 蒙自县| 长兴县| 都兰县| 昌乐县| 甘南县| 台北市| 淅川县| 静乐县| 黎平县|