Annotation Interface RepositoryRestController


Annotation to demarcate Spring MVC controllers provided by Spring Data REST. Allows to easily detect them and exclude them from standard Spring MVC handling.

Note, that this annotation should only be used by application controllers that map to URIs that are managed by Spring Data REST as they get handled by a special HandlerMapping implementation that applies additional functionality:

  • CORS configuration defined for the repository backing the path.
  • An OpenEntityManagerInViewInterceptor for JPA backed repositories so that properties can always be accessed.
Author:
Oliver Gierke