com.springframework.jwt.auth.annotation.RequiresPermissions Maven / Gradle / Ivy
package com.springframework.jwt.auth.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface RequiresPermissions {
String[] value();
/**
* 多个权限的逻辑操作,是and还是or,默认是and
* @return 权限策略
*/
Logical logical() default Logical.AND;
}