springboot项目
package com.hirebigdata.datamanage.sentiment.controller.joinDepotManage;
import com.hireBigData.common.util.CommonUtil;
import org.apache.commons.io.IOUtils;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
/**
* @Auther: LH
* @Date: 2019/03/05 18:01
* @Description:
*/
@RestController
@RequestMapping("/file")
public class FileController {
@javax.annotation.Resource
private ResourceLoader resourceLoader;
/**
* 本地下载文件excel模板
* @param response
* @param request
*/