随笔分类 -  Shiro--权限管理

Shiro入门之二 --------基于注解方式的权限控制与Ehcache缓存
摘要:一 基于注解方式的权限控制 首先, 在spring配置文件applicationContext.xml中配置自动代理和切面 <!-- 8配置自动代理 --> <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisor 阅读全文
posted @ 2017-02-28 09:47 rodge 阅读(1035) 评论(0) 推荐(0)
Shiro入门之一 -------- Shiro权限认证与授权
摘要:一 将Shirojar包导入web项目 二 在web.xml中配置shiro代理过滤器 注意: 该过滤器需要配置在struts2过滤器之前 <!-- 配置Shiro的代理过滤器 --> <filter> <filter-name>shiroFilter</filter-name> <filter-c 阅读全文
posted @ 2017-02-26 21:21 rodge 阅读(15530) 评论(0) 推荐(1)