会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qukaige
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
21
下一页
2021年1月11日
git 常用命令总结
摘要: git 使用 git init 初始化git git add . 添加本地文件到暂存区(由暂存区提交到远程仓库) git commit -m '提交说明' (提交到本地仓库) git push origin master (将本地代码推送到远程仓库) git status 查看当前本地项目状态(那些
阅读全文
posted @ 2021-01-11 12:09 qukaige
阅读(63)
评论(0)
推荐(0)
2021年1月7日
SpringSecurity + SpringBoot2.x +redis+多数据源
摘要: 1. 多数据源配置(SQLServer,PostgreSQL) 2. 集群session 配置 外部存储(redis) 3.SpringSecurity 登录安全认证 4.SpringSecurity remembreMe 配置 5. SpringSecurity SessionManager 配置
阅读全文
posted @ 2021-01-07 12:44 qukaige
阅读(322)
评论(0)
推荐(0)
2021年1月2日
spring security oauth 开发sso单点登录
摘要: 1. 创建项目 sso-demo 父项目 sso-server 认证服务器 sso-client1 sso-client2 引入jar包 1.创建 sso-demo 项目 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="h
阅读全文
posted @ 2021-01-02 19:43 qukaige
阅读(319)
评论(0)
推荐(0)
2020年12月14日
使用SpringSocial 开发第三方QQ登录
摘要: OAuth 协议 OAuth协议要解决的问题 解决传统模式的授权(授权协议),认证资源访问问题 OAuth协议中的各种角色 Privider 服务提供商(提供令牌) (如微信) Authorization Server 认证服务器 ResourceServer 资源服务器 Resource Owne
阅读全文
posted @ 2020-12-14 14:50 qukaige
阅读(207)
评论(0)
推荐(0)
2020年12月9日
SpringSecurity 登录添加图片验证码功能
摘要: 生成图形验证码 1.根据随机数生成图片 2.将随机数放入session 3.将生成的图片写到响应中,显示到前端 第一步: 创建ValidateCodeGenerator 接口 generate方法 package com.imooc.security.core.validate.code; impo
阅读全文
posted @ 2020-12-09 14:35 qukaige
阅读(290)
评论(0)
推荐(0)
2020年12月7日
基于SpringSecurity 开发手机验证码登录
摘要: html 实现短信认证流程 实现短信验证码接口 1. 生成验证码 2. 存入session 3. 发送给手机验证码 仿写短信认证逻辑 1. token认证信息,创建token SmsCodeAuthenticationToken extends AbstractAuthenticationToken
阅读全文
posted @ 2020-12-07 10:05 qukaige
阅读(1073)
评论(0)
推荐(0)
2020年12月1日
SpringSecurity 记住我 rememberMe 功能
摘要: 1.html 必须 name="remember-me" <tr> <td colspan='2'><input name="remember-me" type="checkbox" value="true" />记住我</td> </tr> 2. 创建表 persistent_logins 也可以
阅读全文
posted @ 2020-12-01 11:17 qukaige
阅读(242)
评论(0)
推荐(0)
SpringSecurity 增加Filter过滤器
摘要: 配置类 package com.imooc.security.browser; import com.imooc.security.core.properties.SecurityProperties; import com.imooc.security.core.validate.code.Val
阅读全文
posted @ 2020-12-01 09:46 qukaige
阅读(2150)
评论(0)
推荐(0)
SpringSecurity 登录
摘要: 配置类 package com.imooc.security.browser; import com.imooc.security.core.properties.SecurityProperties; import org.springframework.beans.factory.annotat
阅读全文
posted @ 2020-12-01 09:43 qukaige
阅读(138)
评论(0)
推荐(0)
2020年11月28日
文件上传和下载
摘要: controller package com.imooc.web.controller; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.io.OutputStr
阅读全文
posted @ 2020-11-28 19:22 qukaige
阅读(86)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
21
下一页
公告