MCPcopy Index your code
hub / github.com/castello/spring_basic / read

Method read

ch4/BoardController2.java:72–88  ·  view source on GitHub ↗
(Integer bno, Integer page, Integer pageSize, RedirectAttributes rattr, Model m)

Source from the content-addressed store, hash-verified

70 }
71
72 @GetMapping("/read")
73 public String read(Integer bno, Integer page, Integer pageSize, RedirectAttributes rattr, Model m) {
74 try {
75 BoardDto boardDto = boardService.read(bno);
76 m.addAttribute(boardDto);
77 m.addAttribute("page", page);
78 m.addAttribute("pageSize", pageSize);
79 } catch (Exception e) {
80 e.printStackTrace();
81 rattr.addAttribute("page", page);
82 rattr.addAttribute("pageSize", pageSize);
83 rattr.addFlashAttribute("msg", "READ_ERR");
84 return "redirect:/board/list";
85 }
86
87 return "board";
88 }
89
90 @PostMapping("/remove")
91 public String remove(Integer bno, Integer page, Integer pageSize, RedirectAttributes rattr, HttpSession session) {

Callers

nothing calls this directly

Calls 1

readMethod · 0.65

Tested by

no test coverage detected