mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix: add introduction for setOnlyAlias
This commit is contained in:
parent
5317f3539d
commit
bf7738e6f9
@ -480,6 +480,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
|
||||
/**
|
||||
* 设置是否只保留别名中的字段值,如果为true,则不设置alias的字段将不被输出,false表示原样输出
|
||||
* Bean中设置@Alias时,setOnlyAlias是无效的,这个参数只和addHeaderAlias配合使用,原因是注解是Bean内部的操作,而addHeaderAlias是Writer的操作,不互通。
|
||||
*
|
||||
* @param isOnlyAlias 是否只保留别名中的字段值
|
||||
* @return this
|
||||
|
Loading…
Reference in New Issue
Block a user