1.导入jason的输出包
import com.fasterxml.jackson.annotation.JsonFormat;
2.在实体类中写如下代码:
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date sendtime;
1.导入jason的输出包
import com.fasterxml.jackson.annotation.JsonFormat;
2.在实体类中写如下代码:
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date sendtime;