我将地图数据作为 ArrayList 发布。所以我已经通过 Raw body 进行了尝试。但我需要将其作为表单数据发布。我尝试了很多方法,但没有得到结果。如果有人知道解决方案,该怎么做。请给我解决方案。
这是我的代码亲爱的。
@Id
private String id;
@Field(value = "name")
private String name;
@Field(value = "description")
private String description;
@Field(value = "attributes")
private List<Map<String, String>> attributes = new ArrayList<Map<String, String>>();
this is what i am sending in Body Raw i want to post it by Form-Data
{
"name":"Fourth Template",
"description":"covers most of selected attributes",
"attributes": [
{
"attributeId": "5d4284807748181cbc8a8277",
"selectedDataSource": "collections"
},
{
"attributeId": "5d4284807748181cbc8a8277",
"selectedDataSource": "paycom"
},
{
"attributeId": "5d4284807748181cbc8a8277",
"selectedDataSource": "originations"
}
]
}
蝴蝶不菲
富国沪深
相关分类