当前位置:网站首页>发送post请求前台无法获取数据
发送post请求前台无法获取数据
2022-08-10 13:04:00 【T_Y_F666】
发送post请求前台无法获取数据
错误
发送post请求前台无法获取数据
解决方案
对于接收的参数对象为Json类型的字符串,因此需加上@RequestBody注解
原因
@RequestBody注解则是作用在形参列表上,是将 HTTP 请求正文插入方法中,使用适合的 HttpMessageConverter 将请求体写入某个对象。
参考内容
@ResponseBody
原创不易
转载请标明出处
如果对你有所帮助 别忘啦点赞支持哈
边栏推荐
猜你喜欢
随机推荐
CodeForces - 834C
Short read or OOM loading DB. Unrecoverable error, aborting now
【ECCV 2022|百万奖金】PSG大赛:追求“最全面”的场景理解
浙大、阿里提出DictBERT,字典描述知识增强的预训练语言模型
【黑马早报】雷军称低谷期曾想转行开酒吧;拜登正式签署芯片法案;软银二季度巨亏230亿美元;北京市消协约谈每日优鲜...
ABAP file operations involved in the Chinese character set of problems and solutions for trying to read
3DS MAX batch export file script MAXScript with interface
友邦人寿可观测体系设计与落地
Codeforces Round #276 (Div. 1) D. Kindergarten
Redis上云迁移实践
Nanodlp v2.2/v3.0 light curing circuit board, connection method of mechanical switch/photoelectric switch/proximity switch and system state level setting
es6-promise对象详解
一种能让大型数据聚类快2000倍的方法,真不戳
YTU 2295: KMP pattern match one (string)
jenkins数据迁移和备份
Matrix Keyboard & Calculator Small Project Based on 51 (UcosII)
Ethernet channel Ethernet channel
表中存在多个索引问题? - 聚集索引,回表,覆盖索引
Solution for "Certificate not valid for requested usage" after Digicert EV certificate signing
R语言使用gt包和gtExtras包优雅地、漂亮地显示表格数据:gtExtras包的gt_highlight_rows函数高亮(highlight)表格中特定的数据行、配置高亮行的特定数据列数据加粗









