使用方式: ServletOutputStream outputStream = response.getOutputStream(); EasyExcel.write(outputStream,OrderRespExcel.class).sheet().doWrite(orderRespExcels);
BeanMap create(Object bean) { Generator gen = new Generator(); debug源码到这儿抛异常 异常信息: com.alibaba.excel.exception.ExcelGenerateException: java.lang.ExceptionInInitializerError at com.alibaba.excel.write.ExcelBuilderImpl.addContent(ExcelBuilderImpl.java:65) ~[easyexcel-3.0.5.jar:?] at com.alibaba.excel.ExcelWriter.write(ExcelWriter.java:73) ~[easyexcel-3.0.5.jar:?] at com.alibaba.excel.ExcelWriter.write(ExcelWriter.java:50) ~[easyexcel-3.0.5.jar:?]
Caused by: java.lang.ExceptionInInitializerError at com.alibaba.excel.util.BeanMapUtils.create(BeanMapUtils.java:26) ~[easyexcel-3.0.5.jar:?] at com.alibaba.excel.write.executor.ExcelWriteAddExecutor.addJavaObjectToExcel(ExcelWriteAddExecutor.java:144)