arraylist如何从pojo生成数组对象并在Java中传入formparams
我需要从Pojo生成customerContactList[0].customerContactId
密钥。我尝试过使用arrayList,但我能够以下面的格式生成customerContactList=[{ customerContactId=2 } ]
,这对于API请求来说似乎是无效的
- 此Post API接受表单数据
你可以在下面搜索框中键入要查询的问题!
我需要从Pojo生成customerContactList[0].customerContactId
密钥。我尝试过使用arrayList,但我能够以下面的格式生成customerContactList=[{ customerContactId=2 } ]
,这对于API请求来说似乎是无效的
# 1 楼答案
你的标准pojo应该是这样的
也许这对你有帮助