@Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface APPLoginUser { }
时间: 2024-01-09 18:01:55 浏览: 64
annotation.rar
This is a custom annotation in Java, used to mark a method parameter as the user who is currently logged in to the application.
@Target(ElementType.PARAMETER) specifies that this annotation can only be applied to method parameters.
@Retention(RetentionPolicy.RUNTIME) specifies that the annotation should be retained at runtime, so that it can be accessed and used by the application.
The name of the annotation, "APPLoginUser", indicates that it is meant to be used specifically for marking a parameter as the currently logged in user.
阅读全文