当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- C language I blog assignment 03
- Assembly function MCALL systemstack asmcgocal system call
- Get started, GIT
- Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
- Improvement of maintenance mode of laravel8 update
- Design pattern of facade and mediator
- Git code submission operation, and git push prompt failed to push some refs'xxx '
- Kylin on Kubernetes 在 eBay 的实践
- 爆一个VS2015 Update1更新带来的编译BUG【已有解决方案】
- See once to understand, graphic single chain table inversion
猜你喜欢
随机推荐
Facebook开源框架如何简化 PyTorch 实验
手撕算法-手写单例模式
云计算之路-出海记:整一台 aws 免费云服务器
easyui dialog“缓存问题”
The emergence and significance of micro service
delphi10的rest.json与system.json的踩坑
C++在C的基础上改进了哪些细节
Awk implements SQL like join operation
Supervisor process management installation and use
Static + code block + polymorphism + exception
Kylin on Kubernetes 在 eBay 的实践
Got timeout reading communication packets解决方法
supervisor进程管理安装使用
Go之发送钉钉和邮箱
尾-递
How Facebook open source framework simplifies pytorch experiment
Analysis of kubernetes service types: from concept to practice
Exploration and practice of growingio responsive programming
如何以计算机的方式去思考
Implementation of Caesar cipher