thymeleaf ssr complate

dev_tymeleaf
jangwonseokicom 1 year ago
parent a8ddf60848
commit 12880e8b5f

@ -73,6 +73,7 @@ public class LoginController {
@RequestMapping(value = "/adm/main/actionMain.do") @RequestMapping(value = "/adm/main/actionMain.do")
public String actionMain(ModelMap model) { public String actionMain(ModelMap model) {
return loginService.actionMain(model); return loginService.actionMain(model);
// return new ModelAndView(loginService.actionMain(model));
} }
@GetMapping("/adm/main/actionLogout.do") @GetMapping("/adm/main/actionLogout.do")

@ -74,7 +74,8 @@ public class LoginService {
@Transactional @Transactional
public String LoginValidService(LoginReq dto, ModelMap model) { public String LoginValidService(LoginReq dto, ModelMap model) {
//기본 리턴은 로그인페이지 //기본 리턴은 로그인페이지
String result = "adm/signin/signin"; // String result = "adm/signin/signin";
String result = "/layout/signin";
TbBotUser userSelect = null; TbBotUser userSelect = null;
TbBotUser user = tbBotUserRepo.findByUserIdAndUseYn(dto.getUserId(), "Y") TbBotUser user = tbBotUserRepo.findByUserIdAndUseYn(dto.getUserId(), "Y")
@ -96,7 +97,8 @@ public class LoginService {
sessionSetting(user); sessionSetting(user);
LoginVO userResult = user.toLoginVO(); LoginVO userResult = user.toLoginVO();
return "forward:/adm/main/actionMain.do"; // return "forward:/adm/main/actionMain.do";
return "/layout/adm/common/dashboard";
} else { } else {
log.info("Fail!"); log.info("Fail!");
} }

Loading…
Cancel
Save