public class InterceptorUtils extends Object
| 构造器和说明 |
|---|
InterceptorUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
annotateSkipInterceptor(Object handler)
是否标注了跳过拦截器
|
static <T extends Annotation> |
getAnnotationFromBeanType(Object handler,
Class<T> type) |
static <T extends Annotation> |
getAnnotationFromMethod(Object handler,
Class<T> type)
获取拦截器目标方法上的注解
|
static org.springframework.web.method.HandlerMethod |
getHandlerMethod(Object handler)
获取拦截器目标方法上的注解
|
public static org.springframework.web.method.HandlerMethod getHandlerMethod(Object handler)
public static <T extends Annotation> T getAnnotationFromMethod(Object handler, Class<T> type)
public static <T extends Annotation> T getAnnotationFromBeanType(Object handler, Class<T> type)
public static boolean annotateSkipInterceptor(Object handler)
Copyright © 2023. All rights reserved.