File -> Settings -> Editor -> Inspections -> 搜索 Serialization issues ,找到 Serializable class without ‘serialVersionUID’ ->打上勾,Apply->OK
然后找到你要序列化的那个类,将光标放到那个类上,alt+回车就自动生成了
File -> Settings -> Editor -> Inspections -> 搜索 Serialization issues ,找到 Serializable class without ‘serialVersionUID’ ->打上勾,Apply->OK
然后找到你要序列化的那个类,将光标放到那个类上,alt+回车就自动生成了