LoginRequired.java 431 B

1234567891011121314151617
  1. package com.jkcredit.invoice.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. * 在需要登录验证的Controller的方法上使用此注解
  8. * @author mumuxigua
  9. */
  10. @Target({ElementType.METHOD})
  11. @Retention(RetentionPolicy.RUNTIME)
  12. public @interface LoginRequired {
  13. String role() default "";
  14. }