读取属性配置文件
InputStream inputStream = null; Properties properties = new Properties(); try { inputStream = (当前类名).class.getResourceAsStream("/path.properties"); properties.load(inputStream); } catch (FileNotFoundException e2) { e2.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } String path = properties.getProperty("upfileWeb");
如果创建source folder,不需要写路径