当前位置:网站首页>Solution: content type 'application/x-www-form-urlencoded; charset=UTF-8‘ not supported
Solution: content type 'application/x-www-form-urlencoded; charset=UTF-8‘ not supported
2022-06-12 06:25:00 【37 degrees.】
Today, I encountered a problem when I was writing about the separation of front and back ends Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported Questions like this
reason :
If Content-Type Set to “application/x-www-form-urlencoded;charset=UTF-8” Whether it's POST Request or GET Requests can be successfully obtained in this way , But if the front end POST In the request body yes Json Object words , Will report the above error .

If the front end is used json String parameters JSON.stringify() It can be used directly at the back end @PostMapping Accept

If it helps you , Give the blogger a free praise to show encouragement
You are welcome to comment on the collection ️
边栏推荐
- Deep and detailed analysis of PHP one sentence Trojan horse
- Computer composition and design work05 ——fifth verson
- Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
- (UE4 4.27) UE4 adds a customized meshpass to realize the edge illumination of the mobile terminal
- QT--实现TCP通信
- JS预解析
- Multithreading (IV) -- no lock (IV) -- unsafe
- LeetCode-1350. Invalid students
- LeetCode-1185. Day of the week
- GET 和 POST 的区别及留言板代码实现
猜你喜欢

Dlib face detection

What states do threads have?

Trunet: short videos generation from long videos via story preserving truncation (thesis translation)

Sensor bringup 中的一些问题总结

摄像头拍摄运动物体,产生运动模糊/拖影的原因分析

张驰咨询:流程是一剂万能良药吗?

leetcode 300. Longest increasing subsequence

Automatic modeling of Interchange

C2w model - language model

Qt-- realize TCP communication
随机推荐
LeetCode-1587. Bank account summary II
Dlib face detection
LeetCode-884. Unusual words in two sentences
Unity3d multi platform method for reading text files in streamingasset directory
SQL 注入读写文件
LeetCode-997. Find the town judge
LeetCode-1185. Day of the week
. Net core and Net framework comparison
Tips for using the potplayer video player
Apache poi 导入导出Excel文件
LeetCode-1350. Invalid students
Leetcode January 13 daily question 747 At least twice the maximum number of other numbers
JS pre parsing
关于 Sensor flicker/banding现象的解释
PDF. js FAQs
MNIST handwritten data recognition by CNN
RMB classification II
Multithreading (V) -- Concurrent tools (II) -- j.u.c concurrent contracting (I) -- AQS and reentrantlock principles
LeetCode-1154. Day of the year
Multithreading (IV) -- no lock (IV) -- unsafe