@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface Interceptor
BeanMethodInterceptor接口,可以拦截标注了指定注解的方法或对象的全部方法
The interceptor annotation, annotated with the object of the annotation, needs to implement the BeanMethodInterceptor interface,
which intercepts all methods or objects that annotate the specified annotation.| 限定符和类型 | 必需的元素和说明 |
|---|---|
Class |
value
该拦截器关心的注解类型,该注解可以标注在类型或者方法上,在类型上时,会拦截该类的所有方法,在方法上时,只拦截标记了的方法,不可以为空
The interceptor CARES about the type of annotation, the annotations can be marked on the type or method, on the type,
can intercept all the methods of the class, on the way, only intercept marked method, cannot be empty
|
public abstract Class value
Copyright © 2021. All rights reserved.