IDEA自动生成序列化ID
作者:互联网
File -> Settings -> Editor -> Inspections -> 搜索 Serialization issues ,找到 Serializable class without 'serialVersionUID' ->打上勾,Apply->OK
实现方式 创建实体类
public class TestEntity implements Serializable {
}
通过快捷键 Alt +Enter
得出的效果
public class TestEntity implements Serializable {
private static final long serialVersionUID = -379118538868139918L;
}
标签:implements,class,IDEA,TestEntity,public,ID,序列化,Serializable,serialVersionUID 来源: https://blog.csdn.net/hu_zhiwei3/article/details/120885792