|
|
|
@ -4,9 +4,12 @@ import java.lang.annotation.ElementType;
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
//11111
|
|
|
|
|
@Target(ElementType.PARAMETER)
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
|
public @interface APPLoginUser {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 自定义注解:APPLoginUser
|
|
|
|
|
* 用于标记方法参数,表示该参数需要从上下文中获取登录用户信息。
|
|
|
|
|
*/
|
|
|
|
|
@Target(ElementType.PARAMETER) // 表明该注解只能用于方法参数上
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME) // 注解在运行时可用,可以通过反射获取
|
|
|
|
|
public @interface APPLoginUser {
|
|
|
|
|
}
|
|
|
|
|