posts - 13, comments - 7, trackbacks - 0, articles - 0

          讀取*.properties文件的方法

          Posted on 2007-02-01 14:41 趙永超 閱讀(321) 評論(0)  編輯  收藏 所屬分類: java

          public class SysUtils{

          Properties property = new Properties();
          InputStream is = null;
          try{
          is = SysUtils.class.getClassLoader().getResourceAsStream("system.properties");
          property.load(is);
          String s = property.getProperty("CMS_URL");
          }catch(Excption e){
          System.out.println("hi"):
          }


          }
          主站蜘蛛池模板: 吴旗县| 临城县| 汉寿县| 安远县| 北海市| 仁布县| 宁明县| 綦江县| 邵武市| 长春市| 绥德县| 沾益县| 正安县| 桦南县| 武宣县| 襄汾县| 华宁县| 抚宁县| 清丰县| 白河县| 保德县| 舞钢市| 永胜县| 台中县| 曲阳县| 兴宁市| 金塔县| 修水县| 郯城县| 海阳市| 西和县| 兴海县| 普安县| 内江市| 东明县| 遂溪县| 淮滨县| 高邑县| 靖边县| 吉水县| 彰化县|