
스프링에서는 PutMapping 혹은 DeleteMapping을 통해
PathVariable()로 id값을 Query String으로 받고, 나머지 값은 ReqeustParam이나 RequestBody로 받으려 할 때 오류가 발생합니다.
Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not supported]
Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'DELETE' not supported]
해당 오류는 Spring의 문제가 아닌 tomcat 자체 문제입니다.
톰캣에서는 POST일 경우에만 body값을 파싱해오도록 설정되어 있습니다.
이에 해당 설정에 DELETE와 PUT을 추가해야 합니다.