2018-11-22商城核心流程

2018-11-22  本文已影响0人  Kwajj
day28javabean格式转换.png 商城流程.png
商城.png
java 的学习.png
public class AddProdTest {
  @Test
  public static void AddProdTest(){
    AddProdRequest apt=new AddProdRequest();
    ArrayList<String> sizes=new ArrayList<>();
    sizes.add("大");
    sizes.add("小");
    ArrayList<String>colores=new ArrayList<>();
    colores.add("白色");
    colores.add("黑色");
    apt.setSizes(sizes);
    apt.setColors(colores);
    apt.setBrand("小米");
    apt.setPrice(5000);
    apt.setProductCode("2348782");
    apt.setProductName("手机");
    apt.setType("数码");
    String aptjson = JSON.toJSONString(apt, true);
    String url="http://qa.guoyasoft.com:8080/product/addProd";
    String aptjson1=HttpTools.doPostByJson(url,aptjson,"UTF-8");
    System.out.println(aptjson1);
![image.png](https://img.haomeiwen.com/i14417399/a87758f566b1d097.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

image.png
上一篇下一篇

猜你喜欢

热点阅读