当前位置:网站首页>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 "
}
边栏推荐
- Policy gradient Method of Deep Reinforcement learning (Part One)
- 20220603数学:Pow(x,n)
- Leetcode刷题---283
- 20220607 others: sum of two integers
- Timo background management system
- Deep Reinforcement learning with PyTorch
- 『快速入门electron』之实现窗口拖拽
- [C question set] of Ⅵ
- Hands on deep learning pytorch version exercise solution - 2.4 calculus
- Leetcode - 5 longest palindrome substring
猜你喜欢

Ut2014 supplementary learning notes

Hands on deep learning pytorch version exercise solution -- implementation of 3-2 linear regression from scratch

Anaconda installation package reported an error packagesnotfounderror: the following packages are not available from current channels:

Data classification: support vector machine

4.1 Temporal Differential of one step
![[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

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

深度学习入门之自动求导(Pytorch)
![[LZY learning notes -dive into deep learning] math preparation 2.5-2.7](/img/57/579357f1a07dbe179f355c4a80ae27.jpg)
[LZY learning notes -dive into deep learning] math preparation 2.5-2.7

Leetcode-106: construct a binary tree according to the sequence of middle and later traversal
随机推荐
[LZY learning notes dive into deep learning] 3.5 image classification dataset fashion MNIST
Opencv+dlib to change the face of Mona Lisa
[graduation season] the picture is rich, and frugality is easy; Never forget chaos and danger in peace.
C#项目-寝室管理系统(1)
六、MySQL之数据定义语言(一)
Leetcode刷题---263
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
Implementation of "quick start electronic" window dragging
Leetcode刷题---704
【毕业季】图匮于丰,防俭于逸;治不忘乱,安不忘危。
20220531 Mathematics: Happy numbers
Ut2016 learning notes
Julia1.0
An open source OA office automation system
Leetcode刷题---44
Pytorch ADDA code learning notes
20220608其他:逆波兰表达式求值
Leetcode刷题---1
openCV+dlib实现给蒙娜丽莎换脸
Hands on deep learning pytorch version exercise solution - 2.5 automatic differentiation