Spring Security(Third Edition)
上QQ阅读APP看书,第一时间看更新

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();
}