讀取properties文件

           public static String getRootPath() {
                  InputStream is 
          = null;
                  String rootPath
          =null;
                  
          try {
                      is 
          = GetRootPath.class.getResourceAsStream("/eoms/docmanage/doc_root_path.properties");
                      Properties pro 
          = new Properties();
                      pro.load(is);
                     rootPath 
          = pro.getProperty("root_path");
                  }
           catch (FileNotFoundException e) {
                      e.printStackTrace();
                  }
           catch (IOException e) {
                      e.printStackTrace();
                  }

                  
          return rootPath;
              }

          posted on 2011-04-12 17:21 Mr.lu 閱讀(131) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 武夷山市| 沅陵县| 洛宁县| 凤阳县| 肃南| 韩城市| 永吉县| 寿宁县| 赤壁市| 桓台县| 获嘉县| 沁水县| 徐水县| 榆林市| 资阳市| 兴宁市| 宝清县| 屏东市| 垦利县| 夏河县| 利川市| 大名县| 仙桃市| 稷山县| 岱山县| 丹巴县| 克山县| 无棣县| 江津市| 宁蒗| 开封县| 丽江市| 包头市| 黑山县| 交口县| 鱼台县| 开封县| 新巴尔虎左旗| 曲阳县| 清水县| 万山特区|