use of io.leopard.web.xparam.Nologin in project leopard by tanhaichao.
the class PassportInterceptor method isNeedLogin.
/**
* 判断handler是否需要登录检查.
*
* @param handler
* @return
*/
public static boolean isNeedLogin(Object handler) {
HandlerMethod method = (HandlerMethod) handler;
Nologin nologin = method.getMethodAnnotation(Nologin.class);
return (nologin == null);
}
Aggregations