当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- How Facebook open source framework simplifies pytorch experiment
- 洞察——风格注意力网络(SANet)在任意风格迁移中的应用
- Improvement of maintenance mode of laravel8 update
- 凯撒密码实现
- Web Security (4) -- XSS attack
- [original] the influence of arm platform memory and cache on the real-time performance of xenomai
- 快速上手Git
- Principles of websocket + probuf
- What magic things can a line of Python code do?
- delphi10的rest.json与system.json的踩坑
猜你喜欢
随机推荐
团灭 LeetCode 股票买卖问题
Jingtao project day09
动态规划——用二进制表示集合的状态压缩DP
C language I blog assignment 03
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
C++在C的基础上改进了哪些细节
ngnix集群高并发
Web安全(二)---跨域资源共享
来自不同行业领域的50多个对象检测数据集
栈-括号的匹配
Adobe Lightroom / LR 2021 software installation package (with installation tutorial)
There's not much time left for Kwai Chung.
计组-总线通信控制之异步串行通信的数据传输
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
DOM节点操作
【原创】ARM平台内存和cache对xenomai实时性的影响
Awk implements SQL like join operation
你可能不知道的Animation动画技巧与细节
数据库基本操作
微信小程序request报400错误 @RequestBody接收不到