spring 3.0 이후부터 Jackson API 를 제공한다.
@RequestBody
매핑시 Jackson 사용POST method로@RequestBody
의 객체를 매핑할 때 Jackson2HttpMessageConverter
가 Http body json 메시지를 Dto 객체로 매핑해준다.
ObjectMapper.readValue()
를 사용하기 때문에 Dto 객체에 Setter가 없어도 된다.
자바스크립트의 객체는 key, value 로 이루어진 프로퍼티들의 집합이다.
@NoArgsConstructor
)기본생성자,getter 없이 필드가 private 이여도 매핑된다.