当前位置:网站首页>Content type ‘application/x-www-form-urlencoded; charset=UTF-8‘ not supported
Content type ‘application/x-www-form-urlencoded; charset=UTF-8‘ not supported
2022-07-03 10:33:00 【Borrow a ray of moonlight】
idea in , Front end access localhost:8001/payment/create?serial=333, Report the following error .
Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]
Cause analysis :postman Send request in :localhost:8001/payment/create?serial=333, The type is x-www-form-urlencoded;charset=UTF-8 , And we used in the back end @RequestBody, Only the front-end can receive json data .
Solution :
Scheme 1 : Get rid of @RequestBody annotation , May adopt @RequestParam Just receive it , Front end and background data correspond
Option two : stay postman It is used in json Format
{
"serial":"12313",
"name":" Yunshengchu "
}
边栏推荐
- 一步教你溯源【钓鱼邮件】的IP地址
- A complete mall system
- High imitation Netease cloud music
- Policy Gradient Methods of Deep Reinforcement Learning (Part Two)
- Standard library header file
- QT creator uses OpenCV Pro add
- Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
- [LZY learning notes dive into deep learning] 3.5 image classification dataset fashion MNIST
- 20220606数学:分数到小数
- Raspberry pie 4B installs yolov5 to achieve real-time target detection
猜你喜欢
![[LZY learning notes dive into deep learning] 3.1-3.3 principle and implementation of linear regression](/img/ce/8c2ede768c45ae6a3ceeab05e68e54.jpg)
[LZY learning notes dive into deep learning] 3.1-3.3 principle and implementation of linear regression

An open source OA office automation system

ECMAScript -- "ES6 syntax specification # Day1

神经网络入门之模型选择(PyTorch)

Matplotlib drawing

七、MySQL之数据定义语言(二)

Free online markdown to write a good resume

ECMAScript--》 ES6语法规范 ## Day1

What can I do to exit the current operation and confirm it twice?
![[LZY learning notes dive into deep learning] 3.4 3.6 3.7 softmax principle and Implementation](/img/02/35e73a43c4ad26fee9ecf180593464.jpg)
[LZY learning notes dive into deep learning] 3.4 3.6 3.7 softmax principle and Implementation
随机推荐
Neural Network Fundamentals (1)
Leetcode-404:左叶子之和
Leetcode刷题---217
20220531数学:快乐数
Ind FHL first week
20220605 Mathematics: divide two numbers
Raspberry pie 4B deploys lnmp+tor and builds a website on dark web
Leetcode刷题---832
Out of the box high color background system
神经网络入门之矩阵计算(Pytorch)
Label Semantic Aware Pre-training for Few-shot Text Classification
ECMAScript--》 ES6语法规范 ## Day1
Softmax 回归(PyTorch)
20220603数学:Pow(x,n)
Leetcode刷题---852
Pytorch ADDA code learning notes
Leetcode刷题---278
Leetcode刷题---1
A complete answer sheet recognition system
20220607其他:两整数之和