Spring Security 5 报 There is no PasswordEncoder mapped for the id "null"
今天在学习SpringSecurity时,登录的时候遇见如下错误:java.lang.IllegalArgumentException:ThereisnoPasswordEncodermappedfortheid"null"原因是因为在SpringSecurity版本5.0之后,官方新增加了加密方式,并把原有的springsecurity的密码存储格式改了。解决方法:在SpringSecurity