title: Using RepositoryRestResource annotation to change RESTful endpoint not working
body: <p>I am new to Spring boot. I was trying to create RESTful web service which also plugs into MongoDB.
  Everything works fine as the guide explains except for this.</p>
  
  <pre><code>package hello.requests;
  
  import java.util.List;
  import org.springframework.data.mongodb.repository.MongoRepository;
  import org.springframework.data.repository.query.Param;
  import org.springframework.data.rest.core.annotation.RepositoryRestResource;
  
  import hello.models.CustomerModel;
  
  @RepositoryRestResource(collectionResourceRel = "people", path = "people")
  public interface CustomerRepository extends MongoRepository&lt;CustomerModel, String&gt; {
  
      List&lt;CustomerModel&gt; findByLastName(@Param("name") String name);
  
  }
  </code></pre>
  
  <p>Here I am trying to change the RESTful endpoint for the repository from the default <code>/customerModels</code> to <code>/people</code>. But when I run this, I get 404 if I try <code>/people</code> but works fine for <code>/customerModels</code>.
  In a broader sense how does <code>@RepositoryRestResource</code> work?
  What am I doing wrong here?</p>