mybatis表的id

@SuppressWarnings("serial")

@Data

public class BaseEntityextends BasePageimplements Serializable {

@ApiModelProperty(value ="id")

@Id

  @Column(name ="id")

@GeneratedValue(strategy = GenerationType.IDENTITY)

private Integerid;

}

你可能感兴趣的:(mybatis表的id)