직렬화:
객체를 저장, 전송할수 있는 형태로 바꾸는것
자바객체-> json 같은 텍스트 형식으로 바꾸는 것
Java 객체:
VillageForecastResponse(
temperature = 23.5,
humidity = 60,
rainfall = 0.0
)
↓ 직렬화(Serialization) ↓
JSON:
{
"temperature": 23.5,
"humidity": 60,
"rainfall": 0.0
}
역직렬화
저장되거나 전송된 데이터를 다시 객체로 변환
JSON:
{
"temperature": 23.5,
"humidity": 60,
"rainfall": 0.0
}
↓ 역직렬화(Deserialization) ↓
Java 객체:
VillageForecastResponse(
temperature = 23.5,
humidity = 60,
rainfall = 0.0
)
'【Spring】' 카테고리의 다른 글
| [spring] MvcConfig, configureMessageConverters, addInterceptors (3) | 2025.08.07 |
|---|---|
| JsonMappingException vs JsonProcessingException (1) | 2025.05.23 |
| [ModelMapper] (0) | 2025.04.16 |
| [Mochito] Spring의 단위 테스트 (0) | 2025.03.29 |
| [jpa] OSIV(Open Session In View) (0) | 2025.03.12 |