获取resources文件夹下面的文件路径 String filePath = GetResource.class.getClassLoader().getResource(“××/××.xlsx”).getPath();