问题:
1.post请求
2.前端传递参数是List<对象>
3.使用的是@RequestBody List<对象> 对象List
解决方案:
1.使用@RequestParam String 字符串对象
来接收前端传递过来的List<对象>
2.把字符串对象转换为原来的对象:
List<对象> list对象 = JSONObject.parseArray(字符串对象, 对象.class);
3.使用easyPOI导出List对象
问题:
1.post请求
2.前端传递参数是List<对象>
3.使用的是@RequestBody List<对象> 对象List
解决方案:
1.使用@RequestParam String 字符串对象
来接收前端传递过来的List<对象>
2.把字符串对象转换为原来的对象:
List<对象> list对象 = JSONObject.parseArray(字符串对象, 对象.class);
3.使用easyPOI导出List对象