implementation 'org.springframework.boot:spring-boot-starter-web'
위의 의존성이 있으면 Jackson 라이브러리를 사용할 수 있다. 따로 의존성을 추가하지 않아도 스프링부트 기본 스타터킷에 포함되어 있다.
@RequestBody
, @ResponseBody
, ResponseEntity<?>
와 같은 JSON 변환 과정이 필요한 경우에 사용된다.생성자
와 getter 메소드
가 필요하다.private
이어도 된다.⇒ 제대로 된 문서 찾고 내용 추가하여 첨부...ㅠㅠ
https://velog.io/@dailylifecoding/Spring-MVC-Jackson-Json-Control