1.设置
打开idea的:file --> setting --> Editor --> inspections --> 搜索serializable --> 在class withOut "serialVersionUID" 勾上
2.测试
结果