java如何获取上一级目录
String allInOneProjectPath = System.getProperty("user.dir");//当前项目工作目录
System.out.println("===============================" + allInOneProjectPath);
File curAllInOneProjectFile = new File(allInOneProjectPath);
File rootProjectFileDir = curAllInOneProjectFile.getParentFile();//获取上一级目录