在使用BeanUtils.copyProperties()时,出现拷贝时间错误问题。
解决:在字段上对时间格式进行修改
/**
* 操作时间
*/
@ApiModelProperty(value = "操作时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gmtModified;
在使用BeanUtils.copyProperties()时,出现拷贝时间错误问题。
解决:在字段上对时间格式进行修改
/**
* 操作时间
*/
@ApiModelProperty(value = "操作时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date gmtModified;