当前位置:网站首页>Wechat applet request reported 400 error @ requestbody failed to receive
Wechat applet request reported 400 error @ requestbody failed to receive
2020-11-07 21:03:00 【Maiyuweng】
backstage springboot Do the interface , Parameter use @RequestBody JSONObject Pick up But the applet wx.request Visit tips 400, Backstage observation also reported a mistake , It's been posted backstage , After checking, it was found that it was a small program request By default get The way , Change to post backstage @RequestBody You can receive
wx.request({
url: "api Address ",
data: {a:1,b:2},
method: "POST",
header: {
'content-type': 'application/json'
},
success(res) {
console.log(res.data)
}
})
版权声明
本文为[Maiyuweng]所创,转载请带上原文链接,感谢
边栏推荐
- 洞察——风格注意力网络(SANet)在任意风格迁移中的应用
- Web Security (4) -- XSS attack
- Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
- ngnix集群高并发
- Python image recognition OCR
- 看一遍就理解,图解单链表反转
- Implementation of Caesar cipher
- High concurrency in ngnix cluster
- The emergence and significance of micro service
- Web安全(二)---跨域资源共享
猜你喜欢

Let's talk about the locks in the database

某618大促项目的复盘总结

三步一坑五步一雷,高速成长下的技术团队怎么带?

微信小程序request报400错误 @RequestBody接收不到

WPF personal summary on drawing

年薪90万程序员不如月入3800公务员?安稳与高收入,到底如何选择?

团灭 LeetCode 股票买卖问题

Ubuntu下搜狗输入法的下载安装及配置

手撕算法-手写单例模式

Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
随机推荐
爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
数据库基本操作
The emergence and significance of micro service
使用jsDelivr加速你的网站
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
Summary of the resumption of a 618 promotion project
sed之查找替换
C language I blog assignment 03
Cpp(二) 创建Cpp工程
Delphi10's rest.json And system.json Step on the pit
Got timeout reading communication packets解决方法
go wire 依赖注入入门
WPF 关于绘图个人总结
团灭 LeetCode 股票买卖问题
Getting started with go wire dependency injection
Practice of Xiaoxiong school development board: real equipment access of smart street lamp sandbox experiment
【原创】ARM平台内存和cache对xenomai实时性的影响
什么都2020了,LINQ查询你还在用表达式树
Web Security (4) -- XSS attack
一次公交卡被“盗刷”事件带来的思考