读取Web工程下文件的方法总结(我的学习笔记)

一、读取properties文件内容 利用Properties读取文件输入流 InputStream in = NumTest.class.getResourceAsStream("/db.properties"); Properties properties = new Properties(); properties.load(in); String value = properties.ge
相关文章
相关标签/搜索