이번 포스팅은, JSON 파일을, JAVA DTO 클래스로 받아오는 방법을 기록하기로했다. [목차] 1. JSON to DTO Array 2. Object Mapper 1. JSON to DTO Array 저번 게시물(https://thalals.tistory.com/266)에서 외부 API에서 JSON 파일을 ResponseEntity 파일로 받아왔는데, 이 Object 데이터를 DTO 클래스로 변환해서 저장한다음, 내 입맛데로 변경하여 사용할 수 있다. 외부 API 데이터 받아오기 public ResponseEntity getData(String url ) { //Spring restTemplate RestTemplate restTemplate = new RestTemplate(); HttpHeade..