springboot解决easyPOI使用post请求调用接口导出Excel不能接收@RequestBody对象问题
问题:
1.post请求
2.前端传递参数是List<对象>
3.使用的是@RequestBody List<对象> 对象List
解决方案:
1.使用@RequestParam String 字符串对象来接收前端传递过来的List<对象>
2.把字符串对象转换为原来的对象:
List<对象> list对象 = JSONObject.parseArray(字符串对象, 对象.class);
3.使用easyPOI导出List对象
...
原创
2021-01-15 09:06:04 ·
1231 阅读 ·
0 评论