资源简介

SSM框架,利用poi导入excel文件到数据库,导出excel,SSM框架搭建

资源截图

代码片段和文件信息

package com.wei.controller;

import java.io.InputStream;
import java.util.List;

import javax.annotation.Resource;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import com.wei.entity.EmpT;
import com.wei.service.ExcelService;
import com.wei.util.GsonUtils;
import com.wei.util.OutputExcel;
import com.wei.util.ResponseUtil;



@Controller
@RequestMapping(“/exc

评论

共有 条评论