• 大小: 53KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-06
  • 语言: 其他
  • 标签: POI  导入Excel  

资源简介

POI导入Excel,详细内容查看博客 POI导入Excel文件--form表单提交 内容

资源截图

代码片段和文件信息

package com.aaa.ctrl;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.aaa.domain.Emp;

/**
 *@descriptions:
 *@author:xfh
 *createTime:2019-1-2下午4:22:51
 */
@RequestMapping(“poi“)
@Controller
public class ImportExcelCtrl {

@RequestMapping(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-02 23:35  poi_import-demo\
     文件        1004  2019-01-02 23:35  poi_import-demo\.classpath
     文件        1224  2019-01-02 23:35  poi_import-demo\.project
     目录           0  2019-01-02 23:35  poi_import-demo\.settings\
     文件         508  2019-01-02 23:35  poi_import-demo\.settings\.jsdtscope
     文件         430  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.jdt.core.prefs
     文件          90  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.m2e.core.prefs
     文件         775  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.wst.common.component
     文件         252  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2019-01-02 23:35  poi_import-demo\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        5627  2019-01-02 23:35  poi_import-demo\pom.xml
     目录           0  2019-01-02 23:35  poi_import-demo\src\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\ctrl\
     文件        2029  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\ctrl\ImportExcelCtrl.java
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\dao\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\domain\
     文件         575  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\domain\Emp.java
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\java\com\aaa\service\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\resources\
     文件         355  2019-01-02 23:35  poi_import-demo\src\main\resources\dbcp.properties
     文件        2400  2019-01-02 23:35  poi_import-demo\src\main\resources\spring-mybatis-config.xml
     文件        1544  2019-01-02 23:35  poi_import-demo\src\main\resources\springmvc-config.xml
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\webapp\
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\webapp\meta-INF\
     文件          39  2019-01-02 23:35  poi_import-demo\src\main\webapp\meta-INF\MANIFEST.MF
     目录           0  2019-01-02 23:35  poi_import-demo\src\main\webapp\WEB-INF\
............此处省略24个文件信息

评论

共有 条评论