Shiro
可以做认证、授权、加密、会话管理、与web集成、缓存等。
Shiro与SpringSecurity对比
Shiro与spring整合需要一定的整合工作
springSecurity功能更丰富一点
springSecurity社区更丰富
shiro使用简单
shiro对于框架依赖低,可以独立运行
shiro不仅可以工作在web中,
Shiro功能
认证登录
授权,权限验证
会话(session)管理
加密功能
web支持
缓存
多线程并发验证
测试。。。
Shiro使用
引入依赖
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.7.1</version>
</dependency>