当前位置:网站首页>Type de contenu « Application / X - www - form - urlencoded; Charset = utf - 8 'not supported
Type de contenu « Application / X - www - form - urlencoded; Charset = utf - 8 'not supported
2022-07-03 10:36:00 【Emprunter un rayon de lune】
ideaMoyenne,Accès frontallocalhost:8001/payment/create?serial=333,Signaler l'erreur suivante .
Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]
Analyse des causes:postmanEnvoyer la demande:localhost:8001/payment/create?serial=333,Le type estx-www-form-urlencoded;charset=UTF-8 ,Et nous avons utilisé@RequestBody,Vous ne pouvez recevoir que les transmissions frontalesjsonDonnées.
Solutions:
Programme I:[email protected],Peut être adopté@RequestParamJuste recevoir,Les données avant et arrière correspondent
Programme II:InpostmanEn utilisantjsonFormat
{
"serial":"12313",
"name":"C'est le début de la rime."
}
边栏推荐
- C#项目-寝室管理系统(1)
- 7、 Data definition language of MySQL (2)
- Ut2012 learning notes
- Hands on deep learning pytorch version exercise answer - 2.2 preliminary knowledge / data preprocessing
- 一步教你溯源【钓鱼邮件】的IP地址
- Boston house price forecast (tensorflow2.9 practice)
- Notes - regular expressions
- Leetcode skimming ---217
- [LZY learning notes dive into deep learning] 3.4 3.6 3.7 softmax principle and Implementation
- 神经网络入门之模型选择(PyTorch)
猜你喜欢
熵值法求权重
Pytorch ADDA code learning notes
Data classification: support vector machine
Install yolov3 (Anaconda)
LeetCode - 715. Range module (TreeSet)*****
Realize an online examination system from zero
Jetson TX2 brush machine
ECMAScript -- "ES6 syntax specification # Day1
High imitation Netease cloud music
Configure opencv in QT Creator
随机推荐
Leetcode - 1172 plate stack (Design - list + small top pile + stack))
Pytorch ADDA code learning notes
Softmax regression (pytorch)
Hands on deep learning pytorch version exercise solution - 3.1 linear regression
A complete mall system
Hands on deep learning pytorch version exercise solution - 2.4 calculus
Notes - regular expressions
【SQL】一篇带你掌握SQL数据库的查询与修改相关操作
Leetcode刷题---283
Jetson TX2 刷机
Jetson TX2 brush machine
Codeup: word replacement
Introduction to deep learning linear algebra (pytorch)
Leetcode刷题---852
EFFICIENT PROBABILISTIC LOGIC REASONING WITH GRAPH NEURAL NETWORKS
7、 Data definition language of MySQL (2)
An open source OA office automation system
安装yolov3(Anaconda)
Ut2013 learning notes
Leetcode刷题---217