Annotation Interface Interceptor


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface Interceptor
Declarative interceptor configuration
从以下版本开始:
2018-11-17 21:23
作者:
TODAY
  • 元素详细资料

    • value

      @AliasFor(attribute="include") Class<? extends HandlerInterceptor>[] value
      configure Interceptors

      The order of interceptors execution is related to the position of the interceptor

      默认值:
      {}
    • include

      @AliasFor(attribute="value") Class<? extends HandlerInterceptor>[] include
      configure Interceptors

      The order of interceptors execution is related to the position of the interceptor

      默认值:
      {}
    • includeNames

      String[] includeNames
      configure Interceptors, use bean's name

      The order of interceptors execution is related to the position of the interceptor

      this config add after include()

      默认值:
      {}
    • exclude

      Class<? extends HandlerInterceptor>[] exclude
      默认值:
      {}
    • excludeNames

      String[] excludeNames
      Exclude HandlerInterceptor from bean's name
      默认值:
      {}