Properties prop=new Properties();
InputStream in=new FileInputStream(new File(System.getProperty(“user.dir”)+File.separator+”conf”+File.separator+”xxx.prop”));
prop.load(in);
String filePath = System.getProperty("user.dir") + File.separator+"conf"+ File.separator+"configure.xml"; InputStream in = new BufferedInputStream(new FileInputStream(filePath));
如此即可
————————————————
版权声明:本文为CSDN博主「yanzhaojun7」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yanzhaojun7/article/details/49178827