@RequestMapping("content/") public String selectOneContent( @RequestParam("cntNo") int cntNo, @ModelAttribute("pageVO") PageVO pageVO, Model model) throws Exception { model.addAttribute("boardVO", boardService.selectContent(cntNo)); return "sboard/contentPage"; }
@RequestMapping(value = "content/", method = RequestMethod.GET) public String selectOneContent( @RequestParam("cntNo") int cntNo, @ModelAttribute("searchVO") SearchVO searchVO, Model model) throws Exception { model.addAttribute(boardService.selectContent(cntNo)); return "sboard/contentPage"; }
// view one content @RequestMapping("content/{cntNo}") public String selectContent(@PathVariable int cntNo, Model model) throws Exception { model.addAttribute("boardVO", boardService.selectContent(cntNo)); return "sboard/content"; }