Could not initialize class net.sf.cglib.beans.BeanMap$Generator

问题背景

项目使用springboot整合easyexcel
文件导出时报错Could not initialize class net.sf.cglib.beans.BeanMap$Generator

  • easyexcel 版本为 3.0.5
  • springboot 版本为 2.3.12
    #### 解决方案
    调整pom依赖为以下

      
          com.alibaba
          easyexcel
          3.0.5
          
              
                  cglib
                  cglib
              
          
      
      
          cglib
          cglib
          3.1
      
    

你可能感兴趣的:(springboot)