使用jeeplus时,返回json出现了时间差8小时的夏令时问题。
解决方法:
/src/main/java/com/jeeplus/common/persistence/DataEntity.java
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8" )
public Date getCreateDate() {
return createDate;
}
也就是增加了 , timezone="GMT+8" 的注释,解决了问题