title: Multiple markers at this line - The type NoOpPasswordEncoder is deprecated - The method getInstance() from the type NoOpPasswordEncoder is deprecated
body: <p>I am working on Spring Cloud + Boot example. In this example I am looking to do SSO. When I run this application, I get the response fine, but looks like </p>
  
  <blockquote>
    <p>Multiple markers at this line
        - The type NoOpPasswordEncoder is deprecated
        - The method getInstance() from the type NoOpPasswordEncoder is 
         deprecated</p>
  </blockquote>
  
  <p><strong>application.properties</strong></p>
  
  <pre><code>server.port: 9000
  server.servlet.context-path: /services
  security.oauth2.client.clientId: pluralsight
  security.oauth2.client.clientSecret: pluralsightsecret
  security.oauth2.client.authorized-grant-types: authorization_code,refresh_token,password,client_credentials
  security.oauth2.client.scope:toll_read,toll_report
  </code></pre>
  
  <p><strong>ServiceConfig.java</strong></p>
  
  <pre><code>@Configuration
  public class ServiceConfig extends GlobalAuthenticationConfigurerAdapter {
  
      @Override
      public void init(AuthenticationManagerBuilder auth) throws Exception {
          auth.inMemoryAuthentication()
              .passwordEncoder(NoOpPasswordEncoder.getInstance())
              .withUser("agoldberg").password("pass1").roles("USER")
              .and()
              .withUser("bgoldberg").password("pass2").roles("USER", "OPERATOR");
      }
  }
  </code></pre>
  
  <p><strong>MainMethod:</strong></p>
  
  <pre><code>@SpringBootApplication
  @EnableAuthorizationServer
  public class PluralsightSpringcloudM4SecureauthserverApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(PluralsightSpringcloudM4SecureauthserverApplication.class, args);
      }
  }
  </code></pre>
  
  <p>But STS, shows error. What is the replacement of the deprecated method ?</p>
  
  <p><a href="https://i.stack.imgur.com/0tnix.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0tnix.png" alt="enter image description here"></a></p>
  
  <p>Output:
  <a href="https://i.stack.imgur.com/qyZos.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qyZos.png" alt="enter image description here"></a></p>