spring security对用户名和密码的校验过程

来源:互联网 发布:网络销售的优势和劣势 编辑:程序博客网 时间:2024/05/01 00:04

AuthenticationManager调用Provider,provider调用userDetaisService来根据username获取真实的数据库信息。
而在usernamePasswordAuthenticationFilter中来调用的是AuthenticationManager。。这个流程虽然没多么复杂,但是花费我不少时间给理解到了。。。