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

Method read

ch4/BoardController3.java:67–79  ·  view source on GitHub ↗
(Integer bno, SearchCondition sc, RedirectAttributes rattr, Model m)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

readMethod · 0.65
getQueryStringMethod · 0.45

Tested by

no test coverage detected