在实体类中的时间属性加以下注解,为了正确显示时间格式。@DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")@JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")