基于表单登录

1、首先在前台登录账户密码,然后会跳转到UsernamePasswordAuthenticationFilter类里面

2、他获取到了请求中携带的用户名和密码,然后他用用户名和密码构建了一个UsernamePasswordAuthenticationToken的对象

3、然后他会把这个对象传到AuthenticationManager中去

原文地址:https://www.cnblogs.com/suiyisuixing/p/8025631.html