2021年3月4日
摘要: SecurityContext SecurityContext是安全的上下文,所有的数据都是保存到SecurityContext中。 可以通过SecurityContext获取的对象有: Authentication SecurityContextHolder SecurityContextHold 阅读全文
posted @ 2021-03-04 11:29 Wang梦怡 阅读(117) 评论(0) 推荐(0) 编辑
摘要: spring security 的核心功能主要包括: 1.认证 (你是谁) 2.授权 (你能干什么) 3.攻击防护 (防止伪造身份) 其核心就是一组过滤器链,项目启动后将会自动配置。最核心的就是 Basic Authentication Filter 用来认证用户的身份,一个在spring secu 阅读全文
posted @ 2021-03-04 11:25 Wang梦怡 阅读(76) 评论(0) 推荐(0) 编辑