java如何加载properties文件
程序员文章站
2022-07-04 08:45:00
...
Properties props = new Properties();
InputStream in = ConnectionManager.class.getResourceAsStream("/jdbc.properties");
props.load(in);
in.close();