1、打开Perferences: 2、Editor -> Inspections中搜索Serial,找到Serializable class without 'serialVersionUID',勾选即可