gson 忽略掉某些字段不进行转换

增加 transient 修饰进行解决,例如:

private  transient final DecimalFormat df = new DecimalFormat("#0.00");

 

posted @ 2017-10-19 13:14  yshy  阅读(9949)  评论(0)    收藏  举报