当前位置:网站首页>发送post请求前台无法获取数据
发送post请求前台无法获取数据
2022-08-10 13:04:00 【T_Y_F666】
发送post请求前台无法获取数据
错误
发送post请求前台无法获取数据
解决方案
对于接收的参数对象为Json类型的字符串,因此需加上@RequestBody注解
原因
@RequestBody注解则是作用在形参列表上,是将 HTTP 请求正文插入方法中,使用适合的 HttpMessageConverter 将请求体写入某个对象。
参考内容
@ResponseBody
原创不易
转载请标明出处
如果对你有所帮助 别忘啦点赞支持哈
边栏推荐
猜你喜欢
ArcMAP has a problem of -15 and cannot be accessed [Provide your license server administrator with the following information:Err-15]
bgp双平面实验 路由策略控制流量
一个 CRM One Order Application log 的单元测试报表
[Study Notes] Persistence of Redis
bgp dual plane experiment routing strategy to control traffic
鸿蒙开发从hello world开始
Jiugongge lottery animation
Real-time data warehouse practice of Baidu user product flow and batch integration
Blast!ByteDance successfully landed, only because the interview questions of LeetCode algorithm were exhausted
瑞幸「翻身」?恐言之尚早
随机推荐
【219】慕课三千多的那个go工程师的培训课笔记 02 go语言的编程思想
Ethernet channel 以太信道
Prada, big show?In the yuan in the universe that!
大佬们有遇到过这个问题吗? MySQL 2.2 和 2.3-SNAPSHOT 都这样,貌似是
山水的高度
C# InitializeComponent() does not exist in the current context
Codeforces Round #276 (Div. 1) D. Kindergarten
The basic components of Loudi plant cell laboratory construction
Fragment的show和hide
金山云要飘到哪里?
Proprietary cloud ABC Stack, the real strength!
SecureCRTPortable – 破解
A detailed explanation of implementation api embed
DNS欺骗-教程详解
Redis 定长队列的探索和实践
OTA自动化测试解决方案---整体方案介绍
es6-promise对象详解
malloc 函数详解
Basic knowledge of switches
交换机的基础知识