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

Method list

ch2/BoardController.java:13–19  ·  view source on GitHub ↗
(HttpServletRequest request)

Source from the content-addressed store, hash-verified

11@RequestMapping("/board")
12public class BoardController {
13 @GetMapping("/list")
14 public String list(HttpServletRequest request) {
15 if(!loginCheck(request))
16 return "redirect:/login/login?toURL="+request.getRequestURL(); // 로그인을 안했으면 로그인 화면으로 이동
17
18 return "boardList"; // 로그인을 한 상태이면, 게시판 화면으로 이동
19 }
20
21 private boolean loginCheck(HttpServletRequest request) {
22 // 1. 세션을 얻어서

Callers

nothing calls this directly

Calls 1

loginCheckMethod · 0.95

Tested by

no test coverage detected