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

          讀取*.properties文件的方法

          Posted on 2007-02-01 14:41 趙永超 閱讀(322) 評論(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"):
          }


          }
          主站蜘蛛池模板: 陈巴尔虎旗| 黄平县| 万年县| 大荔县| 华亭县| 中宁县| 公安县| 松阳县| 无锡市| 临西县| 淮滨县| 高尔夫| 报价| 青州市| 青岛市| 宿迁市| 固安县| 灵台县| 新津县| 兰考县| 寿阳县| 曲麻莱县| 深泽县| 巴青县| 株洲县| 和静县| 红原县| 临漳县| 简阳市| 化德县| 永德县| 容城县| 大英县| 长治县| 遂溪县| 贵港市| 资源县| 钦州市| 双桥区| 镇远县| 元氏县|