We have utilized UserDetailsService and UserDetails interfaces in handling user credentials and information but the information, still came from HashMap with static data. This recipe will show us how to archive all the user credentials and information to a database to be fetched by a custom UserDetails class.