| 
					
				 | 
			
			
				@@ -1,7 +1,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.its.api.webapp.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.its.api.its.model.dto.LoginDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.its.api.webapp.config.WebConfig; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.its.api.webapp.domain.Login; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.core.Authentication; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.core.context.SecurityContextHolder; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -21,7 +21,7 @@ import javax.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Slf4j 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Controller 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-public class WebAppController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+public class WebController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private final String operContext = "forward:/application/op"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private final String wallContext = "forward:/application/wall"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -50,6 +50,14 @@ public class WebAppController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new ModelAndView("forward:/application/login/login.html"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/login.do") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public String postLogin(@ModelAttribute Login login, Model model) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        log.error("{}", login.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        log.error("{}", model.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        model.addAttribute("login", login); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return "success"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping({"/logout.do"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ModelAndView getLogout(HttpServletRequest request, HttpServletResponse response) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         log.error("getLogout: {}", request); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,21 +76,13 @@ public class WebAppController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         response.addCookie(cookie); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PostMapping("/login.do") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String postLogin(@ModelAttribute LoginDto.LoginReqDto login, Model model) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        log.error("{}", login.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        log.error("{}", model.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        model.addAttribute("login", login); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return "success"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 시설물 관리 리다이렉션 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param request 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @RequestMapping({"/facility", "/facility/", "/facility/index.do"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping({"/facility", "/facility/", "/facility/index.do"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ModelAndView facility(HttpServletRequest request, HttpServletResponse response) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new ModelAndView(this.fcltContext + "/index.html"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -93,7 +93,7 @@ public class WebAppController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param response 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @RequestMapping({"/wall", "/wall/", "/wall/index.do"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping({"/wall", "/wall/", "/wall/index.do"}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public ModelAndView wall(HttpServletRequest request, HttpServletResponse response) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return new ModelAndView(this.wallContext + "/index.html"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |