Spring REST API: How to disable HTTP Delete/Put methods
Question I had a student ask the question:How can I disable HTTP Options/Delete/Put methods? At the application level it should support only GET and POST requests. Other request methods like put/delete need to be blocked. I am using Spring Boot, Spring MVC and Rest services. Answer One possible solution is to make use of Spring Interceptors. Spring Interceptors can intercept [...]