一.项目中经常会需要读取配置文件(properties文件),因此读取方法总结如下: 1.通过java.util.Properties读取 Properties p=new Properties(); //p需要InputStream对象进行读取文件,而获取InputStream有多种方法: //1.通过绝对路径:InputStream is=new FileInputStream(filePath); //2.通过Class.getResourceAsStream(path); //3.通过C…