postman请求list或者数组格式的参数设置

{
    "agentId":"888",
    "address":"丰盛九玺001",
    "mid":"653699",
    "rightKeyArrayByUser":[
        "wx999",
        "qq",
        "alipay"
    ],
    "title":"杭州篮球吧商户测试1514010459395",
    "password":"123456",
    "linkmen":"曹方毅",
    "vipTime":"2017-12-12",
    "contact":"88888888",
    "oemId":"9999",
    "categoryId":"2000000000",
    "email":"cfyme@163.com",
    "status":"1",
    "username":"caofy1514010459395"
}

参数rightKeyArrayByUser就是一个数组或者list对象

 

后端接收参数对应的bean如下:

  private List<String> rightKeyArrayByUser;


  private String[] rightKeyArrayByUser2;

 

发表评论

邮箱地址不会被公开。