1.前端传json字符串
后端接收
//json字符串转javaBeen
CustomerOrder customerOrder = (CustomerOrder)JSONObject.parseObject(customerOrderList,CustomerOrder.class);
注意:json字符串必须和实体类的名称一一对应
1.前端传json字符串
后端接收
//json字符串转javaBeen
CustomerOrder customerOrder = (CustomerOrder)JSONObject.parseObject(customerOrderList,CustomerOrder.class);
注意:json字符串必须和实体类的名称一一对应