Caused by: org.springframework.orm.jpa.JpaSystemException: ids for this class must be manually assigned before calling save():
nested exception is org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@JsonIgnore
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
这两个属性要放一起