RequiresNone.java 335 Bytes
Newer Older
1
package cn.iocoder.security.annotations;
2 3 4 5 6 7 8 9 10 11 12

import java.lang.annotation.*;

/**
 * 通过将该注解添加到 Controller 的方法上,声明无需进行登陆
 */
@Documented
@Target({ElementType.METHOD}) // 暂时不支持 ElementType.TYPE ,因为没有场景
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresNone {
}