Intellij IDEA2017.2.4 automatically generates serialVersionUID

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:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325067788&siteId=291194637
Recommended