当前位置:网站首页>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 "
}
边栏推荐
- Ind yff first week
- Policy Gradient Methods of Deep Reinforcement Learning (Part Two)
- Leetcode-513: find the lower left corner value of the tree
- 【C 题集】of Ⅵ
- Ut2016 learning notes
- Standard library header file
- Leetcode - the k-th element in 703 data flow (design priority queue)
- Deep Reinforcement learning with PyTorch
- 2-program logic
- 丢弃法Dropout(Pytorch)
猜你喜欢

Ut2014 learning notes

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

一个30岁的测试员无比挣扎的故事,连躺平都是奢望

Ut2013 learning notes

【C 题集】of Ⅵ

4.1 Temporal Differential of one step
![Step 1: teach you to trace the IP address of [phishing email]](/img/a5/c30bc51da560c4da7fc15f434dd384.png)
Step 1: teach you to trace the IP address of [phishing email]

Convolutional neural network (CNN) learning notes (own understanding + own code) - deep learning

Leetcode-513: find the lower left corner value of the tree

丢弃法Dropout(Pytorch)
随机推荐
Mise en œuvre d'OpenCV + dlib pour changer le visage de Mona Lisa
Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
2018 y7000 upgrade hard disk + migrate and upgrade black apple
Leetcode-106:根据中后序遍历序列构造二叉树
Ut2012 learning notes
Label Semantic Aware Pre-training for Few-shot Text Classification
Yolov5 creates and trains its own data set to realize mask wearing detection
Leetcode刷题---189
Policy gradient Method of Deep Reinforcement learning (Part One)
Leetcode刷题---704
20220602数学:Excel表列序号
Hands on deep learning pytorch version exercise solution - 2.5 automatic differentiation
【C 题集】of Ⅵ
Tensorflow - tensorflow Foundation
Leetcode刷题---852
Free online markdown to write a good resume
六、MySQL之数据定义语言(一)
Ind FXL first week
Ut2014 learning notes
Step 1: teach you to trace the IP address of [phishing email]