登陆拦截,Redirect时获取项目名,解决非根据目录发布时调整404问题;
This commit is contained in:
parent
d2eafe20cd
commit
7a129468a4
|
@ -51,7 +51,7 @@ public class PermissionInterceptor extends HandlerInterceptorAdapter {
|
||||||
HandlerMethod method = (HandlerMethod)handler;
|
HandlerMethod method = (HandlerMethod)handler;
|
||||||
PermessionLimit permission = method.getMethodAnnotation(PermessionLimit.class);
|
PermessionLimit permission = method.getMethodAnnotation(PermessionLimit.class);
|
||||||
if (permission == null || permission.limit()) {
|
if (permission == null || permission.limit()) {
|
||||||
response.sendRedirect("/toLogin");
|
response.sendRedirect(request.getContextPath() + "/toLogin");
|
||||||
//request.getRequestDispatcher("/toLogin").forward(request, response);
|
//request.getRequestDispatcher("/toLogin").forward(request, response);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue