![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringSecurity
文章平均质量分 60
SpringSecurity
开心的_鱼
很好,很强大
展开
-
SpringSecurity过滤器
一、过滤器加载过程1.DelegatingFilterProxy在web.xml中配置过滤器进入doFilter方法invokeDelegate方法执行FilterChainProxy的doFilter最终采用遍历的方式执行十五个默认的过滤器二、默认的15个过滤器1.org.springframework.security.web.context.SecurityContextPersistenceFilter首当其冲的一个过滤器,非常重要主要是使用SecurityContextR原创 2021-08-08 21:09:24 · 986 阅读 · 0 评论 -
拦截器之UsernamePasswordAuthenticationFilter
UsernamePasswordAuthenticationFilter是登录时验证账号密码的拦截器,接下来通过源码分析下认证流程1.doFilterUsernamePasswordAuthenticationFilter中并没有doFilter方法,而是在他的父类AbstractAuthenticationProcessingFilter中 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)原创 2021-01-21 22:59:56 · 850 阅读 · 0 评论