·
Across the Great Wall, we can reach every corner in the world.

转字符串再传递,比如 java 配合 jackson 这样写:

public class Post implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    @JsonDeserialize(as = Long.class)
    private Long id;
}