@RequestBody的理解

时间:2021-08-25 18:22:04   收藏:0   阅读:15

What you are asking for is fundamentally wrong. POST requests sends data in a body payload, which is mapped via @RequestBody@RequestParam is used to map data through the URL parameters such as /url?start=foo. What you are trying to do is use @RequestParam to do the job of @RequestBody.

Alternative solutions for REST controllers

Alternative solutions for MVC controllers

It is not possible to map form data encoded data directly to a Map<String, String>.

原文:https://www.cnblogs.com/sidesky/p/15185929.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!