How to use SpringSecurity to view login
This article mainly explains "how to view login with SpringSecurity". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "How to view login with SpringSecurity"!
1.Authentication
Authentication interface has been talked to many times before, and I will talk to you again today.
The Authentication interface is used to store our logged-in user information, and in fact, it further encapsulates the body (java.security.Principal).
Let's look at a definition of Authentication:
public interface Authentication extends Principal, Serializable { Collection