当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Summary of the resumption of a 618 promotion project
- Improvement of maintenance mode of laravel8 update
- Go之发送钉钉和邮箱
- CPP (1) installation of cmake
- Cpp(一) 安装CMake
- Principles of websocket + probuf
- 状态压缩:对动态规划进行降维打击
- Annual salary of 900000 programmers is not as good as 3800 civil servants a month? How to choose between stability and high income?
- See once to understand, graphic single chain table inversion
- Static + code block + polymorphism + exception
猜你喜欢

数据库基本操作

Git代码提交操作,以及git push提示failed to push some refs'XXX'

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

Design pattern of facade and mediator

状态压缩:对动态规划进行降维打击

工作1-3年的程序员,应该具备怎么样的技术能力?该如何提升?

Kubernetes服务类型浅析:从概念到实践

use Xunit.DependencyInjection Transformation test project

14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?

密码学-尚硅谷
随机推荐
Share several vs Code plug-ins I use everyday
Facebook开源框架如何简化 PyTorch 实验
看一遍就理解,图解单链表反转
汇编函数mcall systemstack asmcgocall syscall
easyui dialog“缓存问题”
尾-递
洞察——风格注意力网络(SANet)在任意风格迁移中的应用
Cpp(一) 安装CMake
android基础-RadioButton(单选按钮)
Implementation of Caesar cipher
Search and replace of sed
In the age of screen reading, we suffer from attention deficit syndrome
[original] the influence of arm platform memory and cache on the real-time performance of xenomai
sed之查找替换
Web安全(三)---CSRF攻击
Insight -- the application of sanet in arbitrary style transfer
Writing method of field and field comparison condition in where condition in thinkphpp6
手撕算法-手写单例模式
14000 word distributed transaction principle analysis, master all of them, are you afraid of being asked in the interview?
【C++学习笔记】C++ 标准库 std::thread 的简单使用,一文搞定还不简单?
