注释类型 Interceptor


  • @Target(TYPE)
    @Retention(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
    • 元素详细资料

      • value

        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
        返回:
        Class