在postman中,发送json格式的list或者map,大家一定要注意换行!!!
实体类
```/**
* 专项材料id
*/
@Transient
private HashMap<Long, List<Long>> projectMaterialId;
/**
* 专项id
*/
@Transient
private List<Long> projectIdList;
postman 传递参数 map和List对象
"projectIdList": [
1,
2
],
"projectMaterialId": {
"1": [
1,
2
],
"2": [
1,
2
]
}
Json数据数组对象
{
"fileId":[
1,
2
],
"projectId":21
}
]