intellij serialversionuid generate

已回答

Intellij IDEA Settings

File -> Settings -> Editor -> Inspections -> JVM Languages :

Find serialization class without serialVersionUID and check it.

 

Back to the editor, clicks on the class name, ALT + ENTER (Windows), it will prompts the Add serialVersionUID field option.

A new serialVersionUID is auto-generated.

Done !!

2

Waw, thanks! Clear and to the point, you saved me quite some time ^^

0

请先登录再写评论。