Advertisement

Hutool Excel导入导出

阅读量:

引入pom依赖项

复制代码
    <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>4.1.2</version>
        </dependency>
    
    
      
      
      
      
      
    

仅保留该poi信息即可,若存在其他内容则会导致接口测试时出现错误提示

复制代码
    You need to add dependency of 'poi-ooxml' to your project, and version >= 4.1.2
    
    
      
    
在这里插入图片描述

controller

复制代码
       //导出
    @RequestMapping("/excelW")
    public JsonResult<?> excelW(HttpServle

全部评论 (0)

还没有任何评论哟~