package com.juick.service.security.annotation; import org.springframework.security.core.annotation.AuthenticationPrincipal; import java.lang.annotation.*; @Target({ ElementType.PARAMETER, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented @AuthenticationPrincipal(errorOnInvalidType = true, expression = "user") public @interface Visitor { }