比如,我使用下面语句,那么map.properties放到什么地方才能被找到呢?
fi = ClassLoader.getSystemResourceAsStream("map.properties");大家帮帮忙!

解决方案 »

  1.   

    哈哈,我懂哦看着ResourceBoundle resources;
    InputStream in = null;
    ResourceBundle new Resources;in = ClassLoader.getSystemResourceAsStream("map.properties");resources = new PropertyResourceBunder(in);in.close();//sample
    String className = resources.getString("jdbc.driver");
      

  2.   

    默认放到web-inf下的classes下就应该可以了吧?