Java开发笔记之EasyExcel报错com.alibaba.excel.exception.ExcelGenerateException: java.lang.ExceptionInInitializerError

0x01 概述

使用阿里巴巴的EasyExcel,代码运行报错com.alibaba.excel.exception.ExcelGenerateException: java.lang.ExceptionInInitializerError

 

0x02 问题解决

经查询后,发现JDK包过高导致,JDK8运行正常,JDK11,JDK17运行报以上错误;

详细参考:

1. Exception after upgrading JDK to version 16
2. 3.0.5 按照模板导出com.alibaba.excel.exception.ExcelGenerateException: java.lang.ExceptionInInitializerError

posted @ 2022-05-15 23:07  时光飞逝,逝者如斯  阅读(3949)  评论(0编辑  收藏  举报