in this video, we encode the user password and store it in the database.
for that we are using BCryptPasswordEncoder.
POM.xml
add spring security jar.
artifact :spring-boot-starter-security
@Bean
public PasswordEncoder encoder() {
return new BCryptPasswordEncoder();
}
@EnableWebSecurity