|
|
@@ -19,6 +19,9 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
|
|
|
|
|
|
@Override
|
|
|
public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object object) throws Exception {
|
|
|
+ if(!(object instanceof HandlerMethod)){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
HandlerMethod handlerMethod=(HandlerMethod)object;
|
|
|
Method method=handlerMethod.getMethod();
|
|
|
if (method.isAnnotationPresent(RootAllowed.class)) {
|