标签:filter get efi ons serial lis com simple exclude
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SimplePropertyPreFilter;
private SimplePropertyPreFilter filter = new SimplePropertyPreFilter();
filter.getExcludes().add("name1"); //忽略的字段
filter.getExcludes().add("name2");
String jsonString = JSON.toJSONString(list, filter);
标签:filter get efi ons serial lis com simple exclude
原文地址:http://www.cnblogs.com/lyhappy/p/6863189.html