#PasswordEncoder

Spring Security 报There is no PasswordEncoder mapped for the id "null"

查了下发现是springsecurity版本在5.0后就要加个PasswordEncoder了解决办法在securityConfig类下加入NoOpPasswordEncoder,不过官方已经不推荐了@BeanpublicstaticNoOpPasswordEncoderpasswordEncoder(){return...
代码星球 ·2020-05-17