- 博客(5)
- 收藏
- 关注
原创 SpringSecurity学习笔记三
基于用户名、密码的"记住我"功能SpringBoot 2.2.0.RELEASE <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</art...
2019-10-25 23:08:05 550
原创 SpringSecurity学习笔记二
SpringSecurity认证成功、失败处理器原理分析首先需要知道的是,SpringSecurity默认的成功、失败处理器是SavedRequestAwareAuthenticationSuccessHandler和SimpleUrlAuthenticationFailureHandler;正常情况下,请求一个资源,在进入到SpringSecurity的认证中,认证成功才会跳转到待请求的资源...
2019-10-25 17:34:46 554
原创 SpringSecurity学习笔记一
基于SpringSecurity实现基于用户名、密码登录及原理分析SpringSecurity以一系列的过滤器链来进行权限的管理,可以自定义新的filter。Demo实现定义一个用户,只有该用户成功登陆 才能访问接口,否则自动跳转到登录页面@Componentpublic class MyUserDetailsService implements UserDetailsService...
2019-10-25 15:07:42 252
原创 使用springboot发送邮件
springboot版本:2.1.6前置条件:引入mail的依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> &l...
2019-10-09 16:12:10 422
原创 HandlerMapping源码学习
spring framework 5.1.8####问题一:HandlerMapping是什么?objects that define a mapping between requests and handler objects.从HandlerMapping接口的注释来看,它是一个关联请求与处理器的对象。它的作用是根据request找到相应的处理器Handler和Intercepto...
2019-10-09 14:02:01 197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人