rest service api 415 http status json request response
-
REST 요청에 대한 HTTP Status 415 에러스프링 2016. 8. 8. 21:10
REST Service 를 위한 설정, 코드를 다 하고 Postman 으로 제대로 된 URL 에 요청을 보냈는데, 아래와 같은 응답이 오면서 동작하지 않았다. Console 에는 아무런 로그도 찍히지 않았다. HTTP Status : 415 The server refused this request because the request entity is in a format not supported by the requested resource for the requested method 구글링 결과 대부분은 요청 Header에 application/json 설정을 하라는 내용이었으나 헤더 설정은 제대로 하고 있었고 요청 자체에 문제는 없었다. 문제는 Spring 에서 Json 을 다루는 라이브러리가 없어서..