Security内存验证无法登陆,There is no PasswordEncoder mapped for the id "null"
首先Spring Security5.0之后,原始密码是“password”,在Spring Security5.0中密码的存储格式是“{id}。。。”这种格式的。前面的id是加密方式,也就是说,程序拿到传过来的密码的时候,首先会以“{id}。。。”这种格式来确定后面的密码是被怎么样加密的,如果找不到就认为id是null。所以我们的程序机会一直出现这个错误:There is no PasswordEncoder mapped for the id “null”。
原创
2018-12-06 09:06:07 ·
312 阅读 ·
0 评论