Controller
/**
* 下载模板
* @param response
*/
@PostMapping("/importTemplatePunish")
public void importTemplatePunish(HttpServletResponse response) {
ExcelUtil<LawBasePunishType> util = new ExcelUtil<LawBasePunishType>(LawBasePunishType.class);
util.importTemplateExcel(response, "模板");
}
前端