package com.lw.dto;

import java.util.Date;

public class HeartRateDto {
  private Date dateTime;

  private Integer rate;

  public Date getDateTime() {
    return dateTime;
  }

  public void setDateTime(Date dateTime) {
    this.dateTime = dateTime;
  }

  public Integer getRate() {
    return rate;
  }

  public void setRate(Integer rate) {
    this.rate = rate;
  }
  
}

@@ -42,16 +42,71 @@
 ate;%0D%0A%0D%0A
+import com.fasterxml.jackson.annotation.JsonFormat;%0D%0A%0D%0A
 public c
@@ -126,16 +126,20 @@
 eDto %7B%0D%0A
+  %0D%0A
   privat
@@ -179,24 +179,74 @@
 eger rate;%0D%0A
+  %0D%0A  @JsonFormat(pattern = %22yyyy-MM-dd HH:mm:ss%22)
 %0D%0A  public D

添加JsonFormat注解，格式化返回的日期