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 !!

1

请先登录再写评论。