Shiro
一颗小小的石头.
这个作者很懒,什么都没留下…
展开
-
最新 springboot2.x 整合 shiro 身份认证
背景shiro是一套工业级的身份及权限验证模块,具体功能和原理在此实战中不多累述。总之 Shiro 的核心是两个功能,一是 身份验证 (通俗说就是登录),二是 权限验证(此用户有没有权限操作)。这里使用 Springboot 2.x 搭建,引入的是 shiro-spring-boot-web-starter,注意其中的web不能少,如果是web项目的话。这里需要指出,sp...原创 2020-02-05 15:07:26 · 341 阅读 · 0 评论 -
Shiro+ Springboot 报错 required a bean named 'authorizer' that could not be found
背景:在使用 shiro-spring-boot-web-starter 时,启动项目报错。Description:Parameter 0 of method authorizationAttributeSourceAdvisor in org.apache.shiro.spring.boot.autoconfigure.ShiroAnnotationProcessorAutoConfig...原创 2020-01-05 22:25:21 · 7986 阅读 · 7 评论 -
Shiro 整合 Springboo2.2
Shiro就不多介绍了,原理性的东西非常多。总结一下有一些要注意的点,例如Authentication 和 Authorization 这两个几乎长的一毛一样的单词对新手来说实在太不友好了。前者是登录时用的身份验证 (即用户密码),后者是 角色权限相关的验证SpringBoot网上很多教程是Spring的,一大堆 Bean 配置让人云里雾里的。 SpringBoot 出了 start...原创 2020-01-05 21:14:52 · 304 阅读 · 0 评论
分享