如果没有对日期时间对象类进行json日期格式声明,会出现类似"2014-05-06T16:09:33"日期,在日期中间多出一个T字母;
添加返回类型:
<result name="pointEstimate" type="json">
<param name="ignoreHierarchy">true</param>
<param name="excludeNullProperties">true</param>
<param name="includeProperties">pager.*,pointId</param>
<!-- <param name="excludeProperties">pager\[\d+\]\.resultList\[\d+\]\.zsuser,pager\[\d+\]\.resultList\[\d+\]\.zspoint</param>
-->
</result>
解决办法:在实体中get方法的上方进行json格式声明:
@JSON(format="yyyy-MM-dd HH:mm")
public Timestamp getEstime() {
return estime;
}