Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
horaoen committed Jan 2, 2025
1 parent b0bc2d6 commit c01cf03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/posts/export-excel-with-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,11 @@ public class ListUrlImageConverter implements Converter<List<URL>> {
```java
@ExcelProperty(value = "相关附件", converter = ListUrlImageConverter.class)
@ColumnWidth(value = 40)
prijvate List<URL> imgUrls;
private List<URL> imgUrls;
```
```java
response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".xlsx");
EasyExcel.write(response.getOutputStream(), AssignTaskForExportVo.class)
.registerWriteHandler(new CustomImageModifyHandler()).sheet()
.doWrite(assignTaskForExportVos);
```

0 comments on commit c01cf03

Please sign in to comment.