实现权限控制, 可以自己写代码实现 (粗粒度权限控制 Filter、 细粒度权限控制 自定义注解、代理、反射技术)

1、 自己写权限框架

2、 Spring Security (使用复杂, 依赖 Spring )

3、 Apache Shiro (更轻量, 使用更简单, 并不完全依赖 spring,可以独立使用 )

Apache Shiro  框架简介和下载导入_后台编程

Apache Shiro  框架简介和下载导入_后台编程_02

官网: http://shiro.apache.org/

Apache Shiro 体系结构

Apache Shiro  框架简介和下载导入_后台编程_03

1、 Authentication 认证 ---- 用户登录,身份识别 who are you?

2、 Authorization 授权 --- 用户具有哪些权限、角色 what can you do ?

3、 Cryptography 安全数据加密

4、 Session Management 会话管理

5、 Web Integration web 系统集成

6、 Interations 集成其它应用,spring、缓存框架

最新版本 1.3.2

Apache Shiro  框架简介和下载导入_后台编程_04

Apache Shiro  框架简介和下载导入_后台编程_05

Apache Shiro  框架简介和下载导入_后台编程_06