Java transient关键字使用小记 http://www.importnew.com/21517.html ps:transient 只能修饰变量,被修饰的变量不能被序列化。反序列后也获取不到被修饰的字。