CurrentUser.java 380 B

12345678910111213141516
  1. package com.caimei.annotation;
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6. /**
  7. * @author Aslee
  8. * @date 2022/07/22
  9. * 自定义注解:获取当前用户
  10. */
  11. @Target(ElementType.PARAMETER)
  12. @Retention(RetentionPolicy.RUNTIME)
  13. public @interface CurrentUser {
  14. }