标签:str tst return stack puts ret filename rop extc
public static Properties loadProps(String fileName) { Properties properties = null; InputStream inputStream = null; try { inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName); if (inputStream == null) { throw new FileNotFoundException(fileName); } properties = new Properties(); properties.load(inputStream); } catch (IOException ex) { ex.printStackTrace(); } finally { closeStream(inputStream); } return properties; } private static void closeStream(InputStream inputStream) { if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { e.printStackTrace(); } } }
标签:str tst return stack puts ret filename rop extc
原文地址:https://www.cnblogs.com/Brake/p/11442828.html