The
AuthenticationProvider
is the component that implements the authentication logic and uses the UserDetailsService
to load details about the user. To find the user by username, it calls the loadUserByUsername(String username)
method.
Summary: -------- 1. Functions should hardly ever be 20 lines long. 2.Keep blocks (inside if, else, while, for, etc.) short. Ideally, j...
No comments:
Post a Comment