Spring Security 5 : There is no PasswordEncoder mapped for the id “null”
问题 I am migrating from Spring Boot 1.4.9 to Spring Boot 2.0 and also to Spring Security 5 and I am trying to do authenticate via OAuth 2. But I am getting this error: java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null From the documentation of Spring Security 5, I get to know that storage format for password is changed. In my current code I have created my password encoder bean as: @Bean public BCryptPasswordEncoder passwordEncoder() { return new