提交 d372f1a8 编写于 作者: HZY_ZERIC_0209's avatar HZY_ZERIC_0209

fix: 尝试使用@JsonIgnore忽略返回计算结果的get方法,看是否能避免放入缓存时序列化异常

上级 ec8cffe1
......@@ -37,6 +37,7 @@ public class LookupResult {
private DAMetric metric;
@JsonIgnore()
public String getField()
{
if(metric!=null&&(!StringUtils.isEmpty(metric.getFieldSet())))
......@@ -63,6 +64,7 @@ public class LookupResult {
private Integer size = 1000;
private Integer total = 0;
@JsonIgnore()
public Integer getTotalPages() {
return this.getSize() == 0 ? 1 : (int)Math.ceil((double)this.total / (double)this.getSize());
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册