as in the question, how does SpringSecurity store user information? How to store it to ensure that each logged-in user gets his or her own UserDetails.
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext () .getAuthentication () .getPrincipal ();
how do I get the current login user directly? What is the basis for judging whether it is the current user or not? What do they use to have an one-on-one relationship? Ask the boss for advice ~