当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Reflection on a case of bus card being stolen and swiped
- Deep into web workers (1)
- 不懂数据库索引的底层原理?那是因为你心里没点b树
- [original] the influence of arm platform memory and cache on the real-time performance of xenomai
- C language I blog assignment 03
- delphi10的rest.json与system.json的踩坑
- 面部识别:攻击类型和反欺骗技术
- Thinkphp6中where条件中字段与字段比较条件的写法
- 编程界大佬教你:一行Python代码能做出哪些神奇的事情?
- See once to understand, graphic single chain table inversion
猜你喜欢

laravel8更新之维护模式改进

Don't treat exceptions as business logic, which you can't afford

Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart

Principles of websocket + probuf

A detailed explanation of microservice architecture

团灭 LeetCode 股票买卖问题

android基础-RadioButton(单选按钮)

Summary of the resumption of a 618 promotion project

What do you think of the most controversial programming ideas?

云计算之路-出海记:整一台 aws 免费云服务器
随机推荐
Three steps, one pit, five steps and one thunder, how to lead the technical team under the rapid growth?
static+代码块+多态+异常
Getting started with go wire dependency injection
What do you think of the most controversial programming ideas?
Do not understand the underlying principle of database index? That's because you don't have a B tree in your heart
Share several vs Code plug-ins I use everyday
Web Security (4) -- XSS attack
Big data algorithm - bloon filter
laravel8更新之维护模式改进
Implementation of multi GPU distributed training with horovod in Amazon sagemaker pipeline mode
Cpp(三) 什么是CMake
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
使用jsDelivr加速你的网站
Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
Kylin on Kubernetes 在 eBay 的实践
一万四千字分布式事务原理解析,全部掌握你还怕面试被问?
[original] the influence of arm platform memory and cache on the real-time performance of xenomai
DOM节点操作
WPF personal summary on drawing
Adobe media encoder /Me 2021软件安装包(附安装教程)