Why and how is serialization used in Java web applications?

后端 未结 5 1033
名媛妹妹
名媛妹妹 2020-12-30 05:13

I\'ve been working on a Java web application where the framework insists that everything is Serializable. I assume that this isn\'t specific to the framework but to web app

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 06:08

    The typical issue is that during replication, or server shutdown, the internal HTTP Sessions are "Serialized" out to a persistent store so they can be recovered or shared.

    Serialization is saving the state of an Object, and being able to reconstitute that state at a later time.

提交回复
热议问题