@Test public void test2(){
//最終生成需要的excel
String fileName = "../excelstore/test6.xlsx";
//test3是模版
String tempFileName="../excelstore/test5.xlsx";
TestMaoDto testMaoDto = new TestMaoDto();
testMaoDto.setId(1L);
testMaoDto.setName("zhangsan");
testMaoDto.setAge(12);
EasyExcel.write(fileName).withTemplate(tempFileName).sheet(1).doFill(testMaoDto);
} }