Skip to content

Commit

Permalink
doc:增加动态文件名使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx authored Mar 25, 2024
1 parent d6fbfb1 commit d67412b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ public class DemoData {

![](http://pigx.vip/20200331164144_l2gwfD_Screenshot.jpeg)

### 导出动态文件名

**ResponseExcel name属性支持 SpEL 表达式获取参数列表动态输出文件名**

```java
@ResponseExcel(name = "#param + '导出'")
@GetMapping("/export")
public List<DemoData> export(String param) {
return list;
}
```

### 导出并加密

```java
Expand Down Expand Up @@ -354,7 +366,7 @@ public class DemoData {
}
```

**导出注解上设置 i18nHeader=true **
**导出注解上设置 i18nHeader=true**

```java
@ResponseExcel(name = "i18nExport", i18nHeader = true)
Expand Down

0 comments on commit d67412b

Please sign in to comment.