1、创建class实体类 implements Serializable
/** ** 1. *
* * @author pollyLou * @version 1.0.0 * @date 2018-09-11 */@Getter@Setter@ToStringpublic class UserBo implements Serializable{}
2。打开idea设置File 》Settings 》Editor 》 Inspections
3、在搜索框输入【serialversionUID】
4、选择勾选【Serializable class without serialVersionUID】,点击【apply】应用
5、鼠标悬浮在实体类名上,按【Alt】+【enter】键,选择'Add serialVersionUID fileld'
/** ** 1. *
* * @author pollyLou * @version 1.0.0 * @date 2018-09-11 */@Getter@Setter@ToStringpublic class UserBo implements Serializable{ private static final long serialVersionUID = 720711358745438183L; }