Which classes in a JSF web application need to be Serializable?
问题JSF控制器、服务和DAO中的
一旦服务器抛出
通常情况下,这些类(in)直接结束在
在JSF(+CDI)Web应用程序中,所有
对于一般的设计实践,在代码库中归类为"Java bean"的任何东西都需要实现EDCOX1〔0〕。这甚至在JavaBeans规范中提到。只有当涉及到
- java.io.WriteAbortedException:写入中止;java.io.NotSerializableException
- JavaBean到底是什么?
JSF应用程序中的每个类都必须实现
如果要重写此项,请使用
其他信息:
- 对象的序列化说明:
It lets you take an object or group of objects, put them on a disk or send them through a wire or wireless transport mechanism, then
later, perhaps on another computer, reverse the process: resurrect the
original object(s). The basic mechanisms are to flatten object(s) into
a one-dimensional stream of bits, and to turn that stream of bits back
into the original object(s).Like the Transporter on Star Trek, it's all about taking something complicated and turning it into a flat sequence of 1s and 0s, then
taking that sequence of 1s and 0s (possibly at another place, possibly
at another time) and reconstructing the original complicated
"something."isocpp.org(Serialization and Unserialization)
号
- 瞬态变量的用途是什么?