https://zhuanlan.zhihu.com/p/58422235

1)transient 修饰的变量不能被序列化;

2)transient 只作用于实现 Serializable 接口;

3)transient 只能用来修饰普通成员变量字段;

4)不管有没有 transient 修饰,静态变量都不能被序列化;