各种错误展示
java.lang.ExceptionInInitializerError。
VerifyError net.sf.cglib.core.DebuggingClassWriter overrides final method visit。
ExcelAnalysisException: java.lang.NoClassDefFoundError: org/objectweb/asm/Type。
解决方法
在pom文件easyexcel上方位置引入org.ow2.asm的高版本(7点多的就可以)
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>7.3.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.2.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.3.0</version>
</dependency>
文章介绍了在使用EasyExcel过程中遇到的如ExceptionInInitializerError、VerifyError和NoClassDefFoundError等错误,以及对应的解决策略,主要是通过在POM文件中引入ASM库的高版本和更新CGlib依赖来解决。
1043





