使用注解:@JsonSerialize(jackson) @JsonSerialize(using= ToStringSerializer.class) @TableId(value = "id", type = IdType.ASSIGN_ID) private Long id;