摘要: 本文采用拦截器来实现权限拦截。在用户访问相关url时,会检查用户是否已经登录并具有相应访问权限。 一:xml配置文件中拦截器配置 二:拦截器实现 阅读全文
posted @ 2016-07-28 17:47 ws珍惜现在 阅读(3749) 评论(0) 推荐(0)
摘要: 一:web.xml (1)spring mvc的配置 (2)示例 二:spring-mvc.xml的配置 (1)扫描控制器 (1.1)头部beans中加入:xmlns:context="http://www.springframework.org/schema/context" (1.2) <!-- 阅读全文
posted @ 2016-07-28 17:26 ws珍惜现在 阅读(1063) 评论(0) 推荐(0)