摘要: 使用过springSecurity的朋友都知道,首先需要在web.xml进行以下配置, <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter 阅读全文
posted @ 2017-03-16 14:56 HelloSUN 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Xml代码 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
posted @ 2017-03-16 10:59 HelloSUN 阅读(5561) 评论(0) 推荐(0) 编辑
摘要: SpringMVC 中的Interceptor 拦截器也是相当重要和相当有用的,它的主要作用是拦截用户的请求并进行相应的处理。比如通过它来进行权限验证,或者是来判断用户是否登陆,或者是像12306 那样子判断当前时间是否是购票时间。 一、定义Interceptor实现类 SpringMVC 中的In 阅读全文
posted @ 2017-03-16 10:54 HelloSUN 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1、简介 Filter也称之为过滤器,它是Servlet技术中最实用的技术,WEB开发人员通过Filter技术,对web服务器管理的所有web资源:例如Jsp, Servlet, 静态图片文件或静态 html 文件等进行拦截,从而实现一些特殊的功能。例如实现URL级别的权限访问控制、过滤敏感词汇、压 阅读全文
posted @ 2017-03-16 10:07 HelloSUN 阅读(147) 评论(0) 推荐(0) 编辑