转自:https://blog.csdn.net/qq_27093465/article/details/78544505
transient修饰的成员是不能被序列化的
static静态的也不能被序列化