一直报这个错,不知道哪里错了
来源:5-6 SpringSecurity用户登录(下)

weixin_慕前端2507535
2022-01-13
在第五章SpringSecurity用户登录(下)中,启动项目登录之后一直报这个错:There is no PasswordEncoder mapped for the id “null”
写回答
2回答
-
imooc?
2023-07-19
//@Bean //不能把这个注释了,注释了就报错,Spring Security严格的很 public PasswordEncoder passwordEncoder(){ return new BCryptPasswordEncoder(); }
望采纳:)
00 -
汪汪对
2022-01-17
是否给用户在数据库里增加对应的角色,角色一定要加正确,参考视频
00
相似问题