![](https://img-blog.csdnimg.cn/20210705225342321.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringSecurity
文章平均质量分 78
主要是SpringSecurity的一些学习笔记
余音流川
这个作者很懒,什么都没留下…
展开
-
自定义跳转
用户登录成功 用户登录成功后,不进行跳转,而是返回json数据 public class MyAuthenticationSuccessHandler implements AuthenticationSuccessHandler { @Override public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentica原创 2021-07-10 19:06:55 · 95 阅读 · 0 评论 -
SpringSecurity配置类
SpringSecurity配置类 实例: public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { // super.configure(http); http.authorizeRequests() .an原创 2021-07-05 23:42:54 · 816 阅读 · 0 评论