(Integer bno, SearchCondition sc, RedirectAttributes rattr, Model m)
| 65 | } |
| 66 | |
| 67 | @GetMapping("/read") |
| 68 | public String read(Integer bno, SearchCondition sc, RedirectAttributes rattr, Model m) { |
| 69 | try { |
| 70 | BoardDto boardDto = boardService.read(bno); |
| 71 | m.addAttribute(boardDto); |
| 72 | } catch (Exception e) { |
| 73 | e.printStackTrace(); |
| 74 | rattr.addFlashAttribute("msg", "READ_ERR"); |
| 75 | return "redirect:/board/list"+sc.getQueryString(); |
| 76 | } |
| 77 | |
| 78 | return "board"; |
| 79 | } |
| 80 | |
| 81 | @PostMapping("/remove") |
| 82 | public String remove(Integer bno, SearchCondition sc, RedirectAttributes rattr, HttpSession session) { |
nothing calls this directly
no test coverage detected