新建类实现Serializable接口
java
import java.io.Serializable;
public class TestSerialVersionUID implements Serializable {
}
打开 Settings ----> Editor ----> Inspections ----> JVM languages 里找到,然后勾选。

鼠标放在类名上,按键AIt+Enter

OK了
