private static void main() throws IOException { Properties prop = new Properties(); InputStream in = ExportPageCategory.class.getResourceAsStream("/project.properties"); try { prop.load(in); prop1= prop.getProperty("prop1Name").trim(); prop2= prop.getProperty("prop2Name").trim(); System.out.println("prop1:" + prop1 + "\nprop2" + prop2); } catch (IOException e) { // Writes in log. e.printStackTrace(); } finally { if (in != null) { try { in.close(); } catch (IOException e) { // Writes in log. } } } }
寒江独钓 2017-09-25
泡泡 2016-06-29
泡泡 2016-06-25
白诗秀儿 2016-05-12
寒江独钓 2016-11-06
伍仔 2016-10-15
吟风 2017-02-20
小鱼儿 2018-11-20
泡泡 2018-03-23
白诗秀儿 2017-05-05
道友请留步 2025-03-26
道友请留步 2025-03-26
藏家708 2025-03-26
leoaim 2025-03-25
恭明惠 2025-03-26
藏家468 2025-03-26
藏家101 2025-03-25
藏家101 2025-03-25
藏家101 2025-03-25
藏家068 2025-03-25