实体类先实现Serializable接口
然后把光标停在在实现类的上面,Alt+Enter,就有了
如果还是没有
设置下
File => Settings... => Inspections => Serialization issues => Serializable class without 'serialVersionUID'
实体类先实现Serializable接口
然后把光标停在在实现类的上面,Alt+Enter,就有了
如果还是没有
设置下
File => Settings... => Inspections => Serialization issues => Serializable class without 'serialVersionUID'