<dependency>
<groupId>
com.google.code.gson
</groupId>
<artifactId>gson</artifactId>
</dependency>
com.google.gson.gson;
productScale2Add.setProductDetail(gson.toJson(productScale.getProductDetails()));
scaleDTO.setProductDetails(
gson.fromJson(domain.getProductDetail(),newTypeToken<List<ProductScaleDetailDTO>>() {}.getType()));
网友评论