springmvc的旧项目引入easyexcel引起的asm依赖冲突,提示错误:nested exception is com.alibaba.excel.exception.ExcelGenerateException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.beans.BeanMap$Generator] with root cause] java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.beans.BeanMap$Generator
百度了下,刚开始以为是asm依赖版本的问题,在maven的pom.xml中直接引入asm依赖,改了asm版本还是有错误。
后来看了别人的博客发现, 由于asm 4.2是由 easyexcel 2.1.6 的依赖 cglib 3.1 引入的,所以直接在maven里引入cglib2.2就可以。