This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
<<<<<<< HEAD
/**
* 登录用户信息
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface APPLoginUser {
=======
>>>>>>> main
* 自定义注解:APPLoginUser
* 用于标记方法参数,表示该参数需要从上下文中获取登录用户信息。
@Target(ElementType.PARAMETER) // 表明该注解只能用于方法参数上
@Retention(RetentionPolicy.RUNTIME) // 注解在运行时可用,可以通过反射获取
}