I just migrate to spring mvc version `5.0.1.RELEASE` but suddenly in eclipse STS WebMvcConfigurerAdapter is marked as deprecated

```
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/");
    }
  ....
  }

```

How can i remove this!