序列化字段

BaseRequest
    @JsonProperty("TokenId")
    private String tokenId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)		// 反序列化
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime startTime;

BaseResponse
    @JSONField(name = "ResponseCode")
    private String responseCode;
posted @ 2022-11-30 09:30  这都没什么  阅读(13)  评论(0编辑  收藏  举报