aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/security/annotation/Visitor.java
blob: 14d7cc87dfd5fb709316832fc20eea3ee88ec78e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 {
}