[refactor] AuthenticInterceptor 및 CustomAuthenticInterceptor 리팩터링

main
Hyunjoon Choi 2 years ago
parent 3721953878
commit abcdc3d41e

@ -49,14 +49,11 @@ public class AuthenticInterceptor extends WebContentInterceptor {
log.debug("AuthenticInterceptor ================== ");
return true;
} else {
log.debug("AuthenticInterceptor Fail!!!!!!!!!!!!================== ");
// ModelAndView modelAndView = new ModelAndView("redirect:/uat/uia/egovLoginUsr.do");
ModelAndView modelAndView = new ModelAndView("redirect:http://localhost:3000/login");
throw new ModelAndViewDefiningException(modelAndView);
}
}
log.debug("AuthenticInterceptor Fail!!!!!!!!!!!!================== ");
// ModelAndView modelAndView = new ModelAndView("redirect:/uat/uia/egovLoginUsr.do");
ModelAndView modelAndView = new ModelAndView("redirect:http://localhost:3000/login");
throw new ModelAndViewDefiningException(modelAndView);
}
}

@ -39,8 +39,7 @@ public class CustomAuthenticInterceptor extends HandlerInterceptorAdapter {
log.debug("CustomAuthenticInterceptor sessionID "+session.getId());
log.debug("CustomAuthenticInterceptor ================== ");
boolean isPermittedURL = true;
return isPermittedURL;
return true;
}
}

Loading…
Cancel
Save