Setting->Editor->Inspections->Java->Serialization issues->Serializable class without ’serialVersionUID’
勾选以后,选中类名,输入 Alt+Enter 就会提示自动创建serialVersionUID 。