就两句代码
String filepath = System.getProperty("user.dir")+"/a.xlsx";
File file=new File(filepath);
例子:
结果:
就两句代码
String filepath = System.getProperty("user.dir")+"/a.xlsx";
File file=new File(filepath);
例子:
结果:
转载于:https://www.cnblogs.com/snailmanlilin/p/7922191.html