1234567891011121314151617 |
- package com.jkcredit.invoice.annotation;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- /**
- * 在需要登录验证的Controller的方法上使用此注解
- * @author mumuxigua
- */
- @Target({ElementType.METHOD})
- @Retention(RetentionPolicy.RUNTIME)
- public @interface LoginRequired {
- String role() default "";
- }
|