thymeleaf ssr complate

dev_tymeleaf
jangwonseokicom 2 years ago
parent a8ddf60848
commit 12880e8b5f

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

@ -74,7 +74,8 @@ public class LoginService {
@Transactional
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 user = tbBotUserRepo.findByUserIdAndUseYn(dto.getUserId(), "Y")
@ -96,7 +97,8 @@ public class LoginService {
sessionSetting(user);
LoginVO userResult = user.toLoginVO();
return "forward:/adm/main/actionMain.do";
// return "forward:/adm/main/actionMain.do";
return "/layout/adm/common/dashboard";
} else {
log.info("Fail!");
}

Loading…
Cancel
Save