使用注解:
@JsonSerialize(using = ToStringSerializer.class)
@Data @ApiModel("跟进实体") public class FollowVo { @ApiModelProperty(value = "跟进id") @JsonSerialize(using = ToStringSerializer.class) private Long id; @ApiModelProperty(value = "跟进方式") private Long promWay; }