-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
测试类中写入表格数据丢失 #3780
Labels
bug
Something isn't working
Comments
try (ExcelWriter excelWriter = EasyExcel.write(fileName, DemoData.class).build()){} 这种try-with-resource 的写法,会在try完成后,自动执行close方法,close会调用finish. 如果你在try里面用这个文件,那么可能出现这种情况,请在try后面再看这个文件试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
触发场景描述
测试方法中
这个,之后如果要保存数据,应该加上excelWriter.finish();
不加就会出现生成的表格里面没有sheet也没有数据
触发Bug的代码
提示的异常或者没有达到的效果
没有达到效果就会出现类似下图
sheet名字并不是想要的,并且sheet里面没有数据信息
The text was updated successfully, but these errors were encountered: