bugfix : exception process

This commit is contained in:
kimyonghwa
2019-05-09 14:07:27 +09:00
parent 758c3a0799
commit 695908e2c7
3 changed files with 3 additions and 5 deletions

View File

@@ -22,7 +22,6 @@ public class CustomAccessDeniedHandler implements AccessDeniedHandler {
@Override
public void handle(HttpServletRequest request, HttpServletResponse response, AccessDeniedException exception) throws IOException,
ServletException {
RequestDispatcher dispatcher = request.getRequestDispatcher("/exception/accessdenied");
dispatcher.forward(request, response);
response.sendRedirect("/exception/accessdenied");
}
}