首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

there is a cycle in the hierarchy json解决方法

2012-11-22 
there is a cycle in the hierarchy json解决办法异常原因是:在解析bean时,出现死循环调用。解决的办法:过

there is a cycle in the hierarchy json解决办法

异常原因是:在解析bean时,出现死循环调用。

解决的办法:过滤去掉bean中引起死循环调用的属性。

?

JsonConfig jsonConfig = new JsonConfig();jsonConfig.setJsonPropertyFilter(new PropertyFilter() {public boolean apply(Object source, String name, Object value) {if (name.equals("mticketUserinfo")) {return true;}return false;}});
?

热点排行