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