从CALSSPATH加载properties文件

Properties config = new Properties();
try {			
    config.load(this.getClass().getClassLoader().getResourceAsStream("generatedb.properties"));
} catch (FileNotFoundException e1) {
   e1.printStackTrace();
} catch (IOException e1) {
  e1.printStackTrace();
}		


你可能感兴趣的:(从CALSSPATH加载properties文件)