@RequestMapping( value = {"/showDetailBrief"}, method = RequestMethod.GET) @ResponseBody public Brief detailBrief(Model model, @RequestParam(value = "briefId") String briefId) { Brief brief = briefService.getBrief(Integer.parseInt(briefId)); return brief; }
@RequestMapping( value = {"/showImageBrief"}, method = RequestMethod.GET) @ResponseBody public List<File> detailImageBrief(Model model, @RequestParam(value = "briefId") String briefId) { Brief brief = briefService.getBrief(Integer.parseInt(briefId)); List<File> listFiles = brief.getListImage(); return listFiles; }