For the latest stable version, please use Spring Security 6.4.1!spring-doc.cn

Username/Password Authentication

One of the most common ways to authenticate a user is by validating a username and password. As such, Spring Security provides comprehensive support for authenticating with a username and password.spring-doc.cn