实体类继承BaseEntity时报错。解决方法:在属性或者get方法上加@Id@Id@GeneratedValue(strategy=GenerationType.AUTO)@Column(unique=true, nullable=false)public Long getId() {return this.id;}public void setId(Long id) {this.id = id;}