Wednesday, January 28, 2015

Prevent exporting a method in a repository in Spring Data REST

To prevent exporting a method in a repository in Spring Data REST,

you can do the following:

@RestResource(exported = false)
Customer save(Customer customer);

Reference:
https://github.com/spring-projects/spring-data-rest/wiki/Configuring-the-REST-URL-path#hiding-repository-crud-methods

No comments:

Post a Comment