当前位置:网站首页>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 "
}
边栏推荐
- High imitation bosom friend manke comic app
- Leetcode - the k-th element in 703 data flow (design priority queue)
- ECMAScript -- "ES6 syntax specification # Day1
- 20220531 Mathematics: Happy numbers
- Ind FXL first week
- Opencv+dlib to change the face of Mona Lisa
- openCV+dlib實現給蒙娜麗莎換臉
- Julia1.0
- Leetcode刷题---202
- OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow
猜你喜欢
深度学习入门之线性代数(PyTorch)
深度学习入门之自动求导(Pytorch)
Secure in mysql8.0 under Windows_ file_ Priv is null solution
Hands on deep learning pytorch version exercise solution - 2.5 automatic differentiation
Tensorflow—Image segmentation
八、MySQL之事务控制语言
Training effects of different data sets (yolov5)
[LZY learning notes -dive into deep learning] math preparation 2.1-2.4
Timo background management system
Pytorch ADDA code learning notes
随机推荐
mysql5.7安装和配置教程(图文超详细版)
[C question set] of Ⅵ
LeetCode - 900. RLE iterator
Leetcode刷题---278
Hands on deep learning pytorch version exercise solution -- implementation of 3-2 linear regression from scratch
20220608其他:逆波兰表达式求值
Are there any other high imitation projects
20220606 Mathematics: fraction to decimal
Leetcode刷题---852
Simple real-time gesture recognition based on OpenCV (including code)
侯捷——STL源码剖析 笔记
安装yolov3(Anaconda)
Free online markdown to write a good resume
多层感知机(PyTorch)
神经网络入门之预备知识(PyTorch)
Ind FHL first week
Deep learning by Pytorch
Mise en œuvre d'OpenCV + dlib pour changer le visage de Mona Lisa
Hands on deep learning pytorch version exercise solution - 2.4 calculus
实战篇:Oracle 数据库标准版(SE)转换为企业版(EE)