Annotation Interface CurrentToken


@Inherited @Documented @Retention(RUNTIME) @Target(PARAMETER) @CurrentSecurityContext(expression="authentication.token") public @interface CurrentToken
获取当前用户的携带令牌 Token类型
从以下版本开始:
1.2.3
作者:
应卓
另请参阅:
  • Token
  • Authentication
  • SecurityContext.getAuthentication()
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
     
  • 元素详细资料

    • errorOnInvalidType

      @AliasFor(annotation=org.springframework.security.core.annotation.CurrentSecurityContext.class, attribute="errorOnInvalidType") boolean errorOnInvalidType
      默认值:
      false