java怎么加载properties文件

java如何加载properties文件Properties props new Properties()InputStream in ConnectionManager.cl

java如何加载properties文件

Properties props = new Properties();InputStream in = ConnectionManager.class.getResourceAsStream("/jdbc.properties");props.load(in);in.close();