title: The type WebMvcConfigurerAdapter is deprecated
body: <p>I just migrate to spring mvc version <code>5.0.1.RELEASE</code> but suddenly in eclipse STS WebMvcConfigurerAdapter is marked as deprecated</p>
  
  <pre><code>public class MvcConfig extends WebMvcConfigurerAdapter {
    @Override
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
          // to serve static .html pages...
          registry.addResourceHandler("/static/**").addResourceLocations("/resources/static/");
      }
    ....
    }
  </code></pre>
  
  <p>How can i remove this!</p>