HTTP 데이터 처리 관련 및 IoC와 DI, Repository 관련 정리
·
TIL
데이터 처리 관련JSON 데이터 처리 방법1. Jackson 라이브러리 (직접적으로) 사용json 데이터 구조를 처리해 주는 라이브러리Spring 3.0 버전 이후로 Jackson 관련 라이브러리가 기본 제공(포함)됨 객체 -> json 형태 변환@Testvoid test1() throws JsonProcessingException { Star star = new Star("Robbie", 95); ObjectMapper objectMapper = new ObjectMapper(); String json = objectMapper.writeValueAsString(star); System.out.println("json = " + json);}Jackson 라이브러리 내 `Objec..