Sunday, January 25, 2015

Disable exporting a repository in Spring Data REST

To disable exporting a repository in Spring Data REST,

you can do the following:

@RestResource(exported = false)
public interface UserRepository extends JpaRepository<User, Long> {

Reference:
https://github.com/spring-projects/spring-data-rest/wiki/Configuring-the-REST-URL-path

No comments:

Post a Comment