<dependency> <groupId>org.jxls</groupId> <artifactId>jxls-core</artifactId> <version>2.6.0</version> </dependency> try(InputStream is = new FileInputStream("template.xls")) { try(OutputStream os = new FileOutputStream("output.xls")) { Context context = new PoiContext(); context.putVar("age", 25); JxlsHelper.getInstance().processTemplate(is, os, context); } }


上一篇:
下一篇:
切换中文