SpringBoot整合Security登录报错 There is no PasswordEncoder mapped for the id "null"
Spring Security中密码的存储格式是“{id}…………”。前面的id是加密方式,id可以是bcrypt、sha256等,后面跟着的是加密后的密码。也就是说,程序拿到传过来的密码的时候,会首先查找被“{”和“}”包括起来的id,来确定后面的密码是被怎么样加密的,如果找不到就认为id是null。这也就是为什么我们的程序会报错:There is no PasswordEncoder mapp...
转载
2019-04-14 10:59:38 ·
349 阅读 ·
0 评论