Blocking Specific Request Methods in Spring Data REST
Here's an easy method to block specific HTTP request methods on endpoints created automatically by Spring Data REST. This example blocks POST and DELETE. This obviates any changes or overrides in your repository layer. Note: You should probably do this...