Intellij IDEA automatically generates serialVersionUID

 

Reprinted from: http://blog.csdn.net/arthur0088/article/details/17390515

 

By default, Intellij IDEA turns off the warning of serialVersionUID generation for classes that inherit java.io.Serializable. If you need IDE prompt to generate serialVersionUID, you need to do the following settings:

1、setting->Inspections->Serialization issues,将serialzable class without "serialVersionUID"打上勾;

2. Put the cursor on the class name, press atl+enter, and you will be prompted to generate serialVersionUID.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326658556&siteId=291194637