Postman与@RequestBody和@RequestParam的常见使用方式
先说总结:推荐使用@RequestBody,因为1.除了Content_Type为application/x-www-form-urlencoded时不支持外,其余Content_Type都支持。2.方便增加参数。比如通过map获取参数。当然你也可以在方法中用对象接收参数Map<String,Object> maps = (Map<String, Object>) JSONObject.parse(requestBody);Integer id = (Intege
原创
2020-05-30 13:21:28 ·
4125 阅读 ·
0 评论