직렬화(Serialization)
Java에서의 직렬화
import java.io.Serializable;
public class Member implements Serializable {
private String name;
private String email;
private int age;
public Member(String name, String email, int age) {
this.name = name;
this.email = email;
this.age = age;
}
@Override
public String toString() {
return String.format("Member{name='%s', email='%s', age='%s',", name, email, age);
}
}
언제 사용하는가?
참고자료
- https://blog.javabom.com/minhee/spring-boot/undefined/untitled
- https://velog.io/@dhlee/Spring-FrameWork-Java%EC%9D%98-%EC%A7%81%EB%A0%AC%ED%99%94Serialize%EB%9E%80
- https://haranglog.tistory.com/4
- https://velog.io/@sa1341/Java-%EC%A7%81%EB%A0%AC%ED%99%94%EB%A5%BC-%ED%95%98%EB%8A%94-%EC%9D%B4%EC%9C%A0%EA%B0%80-%EB%AC%B4%EC%97%87%EC%9D%BC%EA%B9%8C