讀取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 閱讀(132) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 彩票| 元谋县| 绥江县| 太仆寺旗| 水富县| 辽源市| 利辛县| 松阳县| 平顶山市| 渝中区| 福安市| 绥棱县| 博兴县| 全南县| 永城市| 黄山市| 如皋市| 太原市| 西宁市| 弥渡县| 丘北县| 大足县| 通化市| 宣武区| 娄底市| 平度市| 焉耆| 安顺市| 东莞市| 南靖县| 湟源县| 万安县| 来宾市| 阿图什市| 通州市| 新昌县| 炎陵县| 百色市| 襄汾县| 永顺县| 湄潭县|