title: AuthenticationManagerBuilder in SpringBoot 2.0.1.RELEASE
body: <p>I have a SpringBoot 2.0.1.RELEASE mvc application, so in the security config I've defined this method:</p>
  
  <pre><code>@Autowired
   public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
              auth
                      .inMemoryAuthentication()
                      .withUser(User
                              .withDefaultPasswordEncoder()
                              .username(DEV_USER)
                              .password(DEV_PWD)
                              .roles("ADMIN").build());
          }
  </code></pre>
  
  <p>but It seems that The method <code>withDefaultPasswordEncoder()</code> from the type User is deprecated but I don't know which I have to use instead, </p>