1 Star 0 Fork 1

thinkyoutoo / security-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
4-2_SpringSecurity基本原理.md 595 Bytes
一键复制 编辑 原始数据 按行查看 历史
Corning Sun 提交于 2018-03-19 15:24 . 4-2 SpringSecurity基本原理

4-2 SpringSecurity基本原理

Spring Secutiry 过滤器链

  • 请求
  • UsernamePasswordAuthenticationFilter
  • BasicAuthenticationFilter
  • ...
  • ExceptionTranslationFilter
  • FilterSecurityInterceptor
  • REST API
  • 响应

问题整理

  • 表单验证设置无效

    问题原因:demo 和 browser 包名不一致,导致无法加载类 BrowserSecurityConfig @SpringBootApplication 注解,包含 @ComponentScan @ComponentScan:会自动扫描指定包下的全部标有@Component的类,并注册成bean,当然包括@Component下的子注解@Service,@Repository,@Controller

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/thinkyoutoo/security-1.git
git@gitee.com:thinkyoutoo/security-1.git
thinkyoutoo
security-1
security-1
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891