//防止json数据用类的get方法访问关联类的所有数据,如果不需要关联的数据,set关联的Null
for(Novel novel : novelList)
{
novel.setNovelType(null);
}
comentData.put("rows", novelList);
转载于:https://www.cnblogs.com/4wei/archive/2012/12/25/2847244.html