目标:
|---了解基于资源的权限管理方式
|---掌握权限数据模型
|---基于URL权限管理(不使用Shiro实现权限管理)
|---Shiro实现用户认证
|---Shiro实现用户授权
|---Shiro与实际的企业web项目整合开发的方法
要学会权限管理的解决方案
原理知识:对权限管理的理解
|---什么是权限管理
|---用户认证
|---用户授权
Shiro基础:
|---Shiro架构
|---Shiro进行用户认证的方法
|---Shiro进行用户授权的方法
此文老猫原创,转载请加本文连接:http://blog.csdn.net/nthack5730/article/details/50964539
更多有关老猫的文章:http://blog.csdn.net/nthack5730
[main]
#定义凭证匹配器
credentialsMatcher=org.apache.shiro.authc.credential.HashedCredentialsMatcher
#指定散列算法
credentialsMatcher.hashAlgorithmName=md5
#指定散列次数
credentialsMatcher.hashIterations=1
#将凭证匹配器设置到realm
customRealm=ccn.marer.shiro.realm.CustomRealmMd5
customRealm.credentialsMatcher=$credentialsMatcher
securityManager.realms=$customRealm