Every time I install a new Intellij , I forget how to set it up. This time I record it for the next time I find it.
1. Setting:
Setting->Inspections->Serialization issues->Serializable class without 'serialVersionUID' 选上。如下图:
2. Use:
In your class : Alt+Enter will prompt to automatically create serialVersionUID . As shown below: