Intellij IDEA 自动生成 serialVersion
2018-08-22 本文已影响0人
从零开始_1b00
Setting 搜索 Inspections
然后依次打开 Inspections->Serialization issues 找Serializable class without ’serialVersionUID’ 进行勾选。如下图1-1
将光标移到类上,然后按alt+enter键,会提示生成serialVersionUID。如图1-2
点击回车自动生成,如图1-3


