Search in sources :

Example 1 with Nologin

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);
}
Also used : Nologin(io.leopard.web.xparam.Nologin) HandlerMethod(org.springframework.web.method.HandlerMethod)

Aggregations

Nologin (io.leopard.web.xparam.Nologin)1 HandlerMethod (org.springframework.web.method.HandlerMethod)1