IntelliJ IDEA给Serializable类加上自动的serialVersionUID

设置以后,点击类,按Alt + Enter

自动加入的代码如下图

原文地址:https://www.cnblogs.com/cxhfuujust/p/11062887.html