//序列化成String的传 @JsonSerialize(using = ToStringSerializer.class) private Long id; 转载于:https://www.cnblogs.com/xzhg/p/7698688.html