@GetMapping("/exportTemplate")
public Result exportTemplate(HttpServletResponse response, HttpServletRequest request) throws Exception {
try
{
// 数据库资源地址
String downloadPath = request.getSession().getServletContext().getRealPath("")+"/商品导入模板.xlsx";
// 下载名称
File name = new File(downloadPath);
// 创建写工作簿对象
生成指定的excel格式文件
最新推荐文章于 2024-07-12 15:51:39 发布