![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shiro
架构师的小跟班
这个小伙好懒,啥都没写
展开
-
shiro 开启 @RequiresRoles, @RequiresPermissions 注解
首先说明,本文springboot 整合 shiro,使用的是starter,shiro-spring-boot-web-starter 如果使用这个starter,shiro 已经默认开启了 @RequiresRoles, @RequiresPermissions 注解支持,不需要在shiroConfig 中配置了 所以,你不需要以下配置了: /** * 开启Shiro注解(如@RequiresRoles,@RequiresPermissions), * 需借助SpringAO原创 2020-12-03 09:06:41 · 1413 阅读 · 0 评论 -
springboot 整合 shiro (Web Applications)避坑一 ,请看shiro官网
避坑一 异常打印 org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration. 在网上找了各种教程寻原创 2020-12-03 08:49:23 · 259 阅读 · 0 评论