title: Can't import `configureRepositoryRestConfiguration` in Spring
body: <p>I have extended my class from <code>RepositoryRestMvcConfiguration</code> according to <a href="https://docs.spring.io/autorepo/docs/spring-data-rest/2.2.0.M1/api/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.html#configureRepositoryRestConfiguration(org.springframework.data.rest.core.config.RepositoryRestConfiguration)" rel="nofollow noreferrer">documentation</a> it has <code>configureRepositoryRestConfiguration</code> method which can be implemented but when I try to override this method I can't import it :| 
  Can anybody tell me Why this problem occurred?</p>
  
  <p><strong>EDIT</strong> : according to current version <code>configureRepositoryRestConfiguration</code> method is not avialble.. so what method should I used instead of this?</p>
  
  <p>Here is my code</p>
  
  <p><strong>MSARepositoryRestMvcConfiguration.java</strong></p>
  
  <pre><code>import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import org.springframework.beans.factory.annotation.Value;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
  import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;
  import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension;
  import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
  
  @Configuration
  public class MSARepositoryRestMvcConfiguration extends RepositoryRestMvcConfiguration {
      private static final Logger LOG = LoggerFactory.getLogger(MSARepositoryRestMvcConfiguration.class);
  
      @Value("${static.path}")
      private String staticPath;
  
  //    @Bean
  //    public PasswordEncoder passwordEncoder() {
  //        return new BCryptPasswordEncoder();
  //    }
    @Override
      protected void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {
          config.setBasePath("/api");
         // config.exposeIdsFor(User.class,Order.class,HeroRating.class,RiderLocation.class,OrderItem.class,Address.class,ShopDetail.class,PromoCode.class,RiderDuty.class,Criteria.class,Setting.class);
          config.setReturnBodyForPutAndPost(true);
          config.setReturnBodyOnCreate(true);
          config.setReturnBodyOnUpdate(true);
      }
  
      @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
      super.addResourceHandlers(registry);
       if(staticPath != null) {
            LOG.info("Serving static content from " + staticPath);
            registry.addResourceHandler("/photos/**").addResourceLocations("file:" + staticPath+"photos/");
             registry.addResourceHandler("/").addResourceLocations("classpath:/static/");
      }
      }
  
      @Bean
      public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
          return new SecurityEvaluationContextExtension();
      }
  }
  </code></pre>
  
  <p><strong>Error</strong>
  It gives an error on <code>configureRepositoryRestConfiguration</code> to remove override annotation</p>
  
  <p><strong>ErrorMessage</strong></p>
  
  <pre><code>The method configureRepositoryRestConfiguration(RepositoryRestConfiguration) of type MSARepositoryRestMvcConfiguration must override or implement a supertype method
  </code></pre>