会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刚刚好。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
下一页
2021年5月21日
SpringSecurity(八):过滤器链
摘要: ##HttpSecurity HttpSecurity 也是 Spring Security 中的重要一环。我们平时所做的大部分 Spring Security 配置也都是基于 HttpSecurity 来配置的。因此我们有必要从源码的角度来理解下 HttpSecurity 到底干了啥? 首先我们来
阅读全文
posted @ 2021-05-21 12:42 刚刚好。
阅读(5599)
评论(2)
推荐(0)
2021年5月20日
SpringSecurity(七):添加验证码
摘要: ##(一) AuthenticationProvider实现类 经过之前的认证流程分析,我们知道了认证主要是在AuthenticationProvider中的authenticate中完成的,那么我们只需要在这个方法中添加一个验证码校验即可 //新建一个AuthenticationProvider实
阅读全文
posted @ 2021-05-20 20:26 刚刚好。
阅读(719)
评论(0)
推荐(1)
SpringSecurity(六):配置多个数据源
摘要: 在我们进行登录时,如果用户数据来自不同的表,在一个表中查不到就去另一个表查,我们就需要配置多个数据源 经过(五)的分析,我们知道了认证需要经过ProviderManager,ProviderManager对应多个AuthenticationProvider,而每个AuthenticationProv
阅读全文
posted @ 2021-05-20 14:44 刚刚好。
阅读(1045)
评论(0)
推荐(0)
SpringSecurity(五):认证流程
摘要: Spring Security整个流程如上图所示,下面我们分别介绍一下各个组件 ##AbstracAuthenticationProcessingFilter AbstracAuthenticationProcessingFilter是一个抽象类,如果使用账号密码的方式登录,AbstracAuthe
阅读全文
posted @ 2021-05-20 14:31 刚刚好。
阅读(1168)
评论(0)
推荐(1)
2021年5月19日
SpringSecurity(四):登录用户信息的获取
摘要: 登录成功后,如果我们没有使用框架的话,用户信息会保存在HttpSession中,Spring Security实质是对HttpSession进行了封装,我们可以直接从HttpSession中获取信息,也可以采用Spring Security提供的方法 (1)从SecurityContextHolde
阅读全文
posted @ 2021-05-19 23:20 刚刚好。
阅读(3133)
评论(0)
推荐(1)
SpringSecurity(三):表单登陆
摘要: @Configuration public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exceptio
阅读全文
posted @ 2021-05-19 21:37 刚刚好。
阅读(872)
评论(0)
推荐(1)
SpringSecurity(二):认证
摘要: ##快速入门 1.引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 2.编写control
阅读全文
posted @ 2021-05-19 15:42 刚刚好。
阅读(739)
评论(0)
推荐(2)
SpringSecurity(一):整体架构
摘要: 原理 是基于责任链的方式 WebAsyncManagerIntegrationFilter:将 Security 上下文与 Spring Web 中用于处理异步请求映射的 WebAsyncManager 进行集成。 SecurityContextPersistenceFilter:在每次请求处理之前
阅读全文
posted @ 2021-05-19 13:50 刚刚好。
阅读(1050)
评论(0)
推荐(2)
2021年5月14日
Zookeeper
摘要: ###zookeeper(一般不用) 1.springcloud整合zookeeper(注意必须引入springcloud) <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-star
阅读全文
posted @ 2021-05-14 20:23 刚刚好。
阅读(80)
评论(0)
推荐(0)
2021年5月8日
Nginx学习总结
摘要: ##Nginx ###基本概念 Nginx是一个高性能的http和反向代理的服务器,占用内存少,并发能力强,主要应用有反向代理,负载均衡,动静分离等等 正向代理:局域网中的用户想要访问外部Internet,可以走代理服务器,这就是正向代理。正向代理客户端需要配置,即我们在浏览器中设置使用代理服务器
阅读全文
posted @ 2021-05-08 00:21 刚刚好。
阅读(92)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
下一页
公告