Skip to content
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时,集合泛型是数组异常 #3035

Closed
lxp411 opened this issue Mar 8, 2023 · 2 comments · May be fixed by #3591
Closed

写excel时,集合泛型是数组异常 #3035

lxp411 opened this issue Mar 8, 2023 · 2 comments · May be fixed by #3591
Labels
question Further information is requested

Comments

@lxp411
Copy link

lxp411 commented Mar 8, 2023

写excel时,集合泛型是数组(List<String[]>),报异常 com.alibaba.excel.support.cglib.core.CodeGenerationException: java.lang.NoClassDefFoundError-->IllegalName: [Ljava.lang.String;$$BeanMapByEasyExcelCGLIB$$1d6ef702
应该支持这种数据格式吧,必须强制是自定义类的话,那就没有通用性了。
目前我看可以用Map<Integer,?>这个代替

@lxp411 lxp411 added the bug Something isn't working label Mar 8, 2023
@gongxuanzhang
Copy link
Collaborator

要是没有实体类 用List<List>

@gongxuanzhang gongxuanzhang added question Further information is requested and removed bug Something isn't working labels Mar 9, 2023
@gongxuanzhang
Copy link
Collaborator

不知道您是否已经解决该问题?我们先暂时关闭这个问题,如果还存在问题请重新Reopen这个issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants