@RequestMapping(value = "/parser/getModel", method = RequestMethod.GET) public String getModelAttrByUrl(@RequestParam("pageUrl") String url, Model model) { log.info(url); dao.clearModelAttr(); dao.downloadModelAttr(url); return "redirect:/parser"; }
@RequestMapping(value = "/parser/clearModelAttr", method = RequestMethod.GET) public String clearModelAttr(Model model) { dao.clearModelAttr(); return "redirect:/parser"; }