{"success":true,"code":0,"msg":"","data":{"themeEx":{"tid":5,"replies":0,"views":3055,"searchs":3,"topGmtUpdate":null,"top":false},"theme":{"id":5,"title":"Intellij IDEA 自动生成 serialVersionUID","content":"
使用 Eclipse 或 MyEclipse 的同学可能知道,如果 implements Serializable 接口时,会提示你生成 serialVersionUID。
但 Intellij IDEA 默认没启用这个功能。
Setting->Inspections->Serialization issues->Serializable class without ’serialVersionUID’
选中以上后,在你的class中:光标定位在类名前,按 Alt+Enter 就会提示自动创建 serialVersionUID 了。
本文出自 “TONY - 小四 技术博客” 博客,请务必保留此出处http://tonycody.blog.51cto.com/8421818/1401422