MCPcopy Create free account
hub / github.com/castello/spring_basic / list

Method list

ch4/BoardController.java:21–27  ·  view source on GitHub ↗
(HttpServletRequest request)

Source from the content-addressed store, hash-verified

19 BoardService boardService;
20
21 @GetMapping("/list")
22 public String list(HttpServletRequest request) {
23 if(!loginCheck(request))
24 return "redirect:/login/login?toURL="+request.getRequestURL(); // 로그인을 안했으면 로그인 화면으로 이동
25
26 return "boardList"; // 로그인을 한 상태이면, 게시판 화면으로 이동
27 }
28
29 private boolean loginCheck(HttpServletRequest request) {
30 // 1. 세션을 얻어서

Callers

nothing calls this directly

Calls 1

loginCheckMethod · 0.95

Tested by

no test coverage detected