可以在实体中加入注解
@JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.2.3</version>
</dependency>