登陆拦截,Redirect时获取项目名,解决非根据目录发布时调整404问题;

This commit is contained in:
xueli.xue 2017-04-27 11:49:27 +08:00
parent d2eafe20cd
commit 7a129468a4
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class PermissionInterceptor extends HandlerInterceptorAdapter {
HandlerMethod method = (HandlerMethod)handler;
PermessionLimit permission = method.getMethodAnnotation(PermessionLimit.class);
if (permission == null || permission.limit()) {
response.sendRedirect("/toLogin");
response.sendRedirect(request.getContextPath() + "/toLogin");
//request.getRequestDispatcher("/toLogin").forward(request, response);
return false;
}