Updating the Spring Security configuration

This can be done by updating the Spring Security configuration. Remove the old ShaPasswordEncoder encoder and add the new StandardPasswordEncoder encoder, as follows:

    //src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java

@Bean
public PasswordEncoder passwordEncoder(){
return new StandardPasswordEncoder();
}