java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null" 的两个解决方案
此为使用spring security 5.x 时出现的问题解决方法一:(使用 @Bean 或 @Component )注册一个PasswordEncoder类型的bean到IOC容器中,在匹配的过程中会自动封装。解决方法二:定义一个PasswordEncoder的实现类,并在定制认证规则的configure(AuthenticationManagerBuilder auth)方法...
原创
2020-03-04 16:02:18 ·
382 阅读 ·
0 评论