title: How to disable the default exposure of Spring Data REST repositories?
body: <p>I have a project that uses spring-data-rest, and has a dependency project that only uses Spring Data. Both projects have spring data repositories and use <code>@EnableJpaRepositories</code> to implement their repository interfaces, but I only want to export the repositories in the parent project.</p>
  
  <p>Here's my question: is there some way to configure Spring Data REST to only expose rest endpoints for resources in the parent project, without having to explicitly annotate every repository in the dependency project with <code>@RepositoryRestResource(exported = false)</code>?</p>
  
  <p>If I can only do this with <code>@RepositoryRestResource</code> of disabling it, and worse yet, no other project with a different use case will be able to enable REST endpoints for those repositories, my dependency project will have to include Spring Data REST solely for the…</p>