时间格式化,springBoot
只需在实体类get方法加上这个就可以了
@JsonFormat(pattern=“yyyy-MM-dd”)
public Date getContSecStartDate() {
return contSecStartDate;
}
时间格式化springBoot
最新推荐文章于 2023-12-01 14:28:50 发布
时间格式化,springBoot
只需在实体类get方法加上这个就可以了
@JsonFormat(pattern=“yyyy-MM-dd”)
public Date getContSecStartDate() {
return contSecStartDate;
}