Properties config = new Properties();try { config.load(this.getClass().getClassLoader().getResourceAsStream("generatedb.properties"));} catch (FileNotFoundException e1) { e1.printStackTrace();} catch (IOException e1) { e1.printStackTrace();}
本文共 295 字,大约阅读时间需要 1 分钟。
Properties config = new Properties();try { config.load(this.getClass().getClassLoader().getResourceAsStream("generatedb.properties"));} catch (FileNotFoundException e1) { e1.printStackTrace();} catch (IOException e1) { e1.printStackTrace();}
转载于:https://my.oschina.net/sfilyh/blog/83229