spring boot注解实现权限控制

文章目录 一、自定义注解 二、注解的实现 三、配置spring boot拦截器 四、添加@RoleCheck注解 划重点(∩_∩) 一、自定义注解 Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface RoleCheck { String[] roles()
相关文章
相关标签/搜索