官方文档关于transient的解释
Java语言的关键字,变量修饰符,如果用transient声明一个实例变量,当对象存储时,它的值不需要维持。换句话来说就是,用transient关键字标记的成员变量不参与序列化过程, 一般用来实现表之间字段的关联,加上transient避免在多表关联时,字段反复实例化
entity 类:
@ApiModelProperty(value = "更新日期")
@TableField("UPDATE_TIME")
@JsonFormat(pattern = CommonConst.DEFAULT_DATE_TIME_FORMAT, timezone = CommonConst.DEFAULT_TIME_TIMEZONE)
private LocalDateTime updateTime;
@ApiModelProperty(value = "是否已删除(1 是 0 否)")
@TableField("DEL_FLAG")
private Integer delFlag;
@ApiModelProperty(value = "申请日期")
@JsonFormat(pattern = CommonConst.DEFAULT_DATE_TIME_FORMAT, timezone = CommonConst.DEFAULT_TIME_TIMEZONE)
transient LocalDateTime requestDate;