-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
导出excel,通过注解设置别名后,setOnlyAlias=true不起作用 #3531
Labels
Comments
ApiModelProperty 这个注解是这个吗? : io.swagger |
是的 |
Bean中设置@alias时,setOnlyAlias是无效的,这个参数只和addHeaderAlias配合使用,原因是注解是Bean内部的操作,而addHeaderAlias是Writer的操作,不互通。 |
你可以下载hutool源码, 在这里查看示例: hutool-poi/src/test/java/cn/hutool/poi/excel/Issue2899Test.java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本情况
JDK版本: openjdk_8_201
设置只写出加了别名的字段,但是实际依然全部字段都导出了hutool版本: 5.8.16(请确保最新尝试是否还有问题)
The text was updated successfully, but these errors were encountered: