|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|