当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 使用jsDelivr加速你的网站
- 14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
- static+代码块+多态+异常
- 是时候结束 BERTology了
- use Xunit.DependencyInjection Transformation test project
- 某618大促项目的复盘总结
- Web Security (1) -- browser homology strategy
- Cpp(四) Boost安装及基本使用 for Mac
- Web Security (3) -- CSRF attack
- ROS learning: remote start ROS node
猜你喜欢
微信小程序request报400错误 @RequestBody接收不到
工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?
盘点那些争议最大的编程观点,你是什么看法呢?
手撕算法-手写单例模式
How to learn technology efficiently
Deep into web workers (1)
你可能不知道的Animation动画技巧与细节
The instanceof operator in ecmascript7 specification
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
Using pipe() to improve code readability in pandas
随机推荐
Using pipe() to improve code readability in pandas
Git code submission operation, and git push prompt failed to push some refs'xxx '
京淘项目day09
微信小程序request报400错误 @RequestBody接收不到
android基础-RadioButton(单选按钮)
动态规划——用二进制表示集合的状态压缩DP
In the age of screen reading, we suffer from attention deficit syndrome
ROS学习---远程启动ROS节点
static+代码块+多态+异常
建议患者自杀,OpenAI警告:GPT-3用于医疗目的风险太高
When tidb and Flink are combined: efficient and easy to use real-time data warehouse
It's time to end bertology
密码学-尚硅谷
Search and replace of sed
Web Security (3) -- CSRF attack
一次公交卡被“盗刷”事件带来的思考
Cpp(四) Boost安装及基本使用 for Mac
C language I blog assignment 03
尾-递
go wire 依赖注入入门