BackEnd/스프링
-
-
-
-
-
-
-
-
content-Type 에 따른 컨트롤러 Request 어노테이션BackEnd/스프링 2021. 12. 17. 17:32
Content-Type : application/json; charset=UTF-8 client 가 보내는 정보의 형식 Accept: application/json *Quick note: there are other ways to do content negotiation, but the Accept header is the default way client 가 응답받고자 하는 정보의 형식 http 요청 파라미터는 url-encoded 방식 > ../action.do?name=''&age='' http body 는 json 혹은 form 방식으로 들어온다. @RequestParam 클라이언트가 전송하는 파라미터를 1:1로 받기 위해 사용하고, Http 요청 파라미터를 받는다, @RequestParam 을 ..
반응형