获取本地项目中图片导出到excel中,在Windows中导出正常,获取图片路径代码如下:
String classpath = this.getClass().getClassLoader().getResource("").toURI().getPath().replaceFirst("/","");String webappRoot = classpath.replaceAll("WEB-INF/classes/", "");
String path = webappRoot+"static