File file = new File(new File("pom.xml").getAbsolutePath()); //获取当前资源文件
.getAbsolutePath()); //当前地址
相当于
File ft=new File("pom.xml"); File file = new File(ft.getAbsolutePath()); //当前路径
File file = new File(new File("pom.xml").getAbsolutePath()); //获取当前资源文件
.getAbsolutePath()); //当前地址
相当于
File ft=new File("pom.xml"); File file = new File(ft.getAbsolutePath()); //当前路径