title: Spring security : migrating 4.0 to 5.0 - Error -There is no PasswordEncoder mapped for the id “null”
body: <pre><code>java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id &quot;null&quot;
      org.springframework.security.crypto.password.DelegatingPasswordEncoder$UnmappedIdPasswordEncoder.matches(DelegatingPasswordEncoder.java:236)
      org.springframework.security.crypto.password.DelegatingPasswordEncoder.matches(DelegatingPasswordEncoder.java:196)
      org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter$LazyPasswordEncoder.matches(WebSecurityConfigurerAdapter.java:593)
  </code></pre>
  <p>My code was working fine, now i have changed the spring security version from 4.0 to 5.0, and its not working</p>