当前位置:网站首页>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 ️
边栏推荐
- Unity surface shader with template buffer
- leetcode 704. Binary search
- Deep and detailed analysis of PHP one sentence Trojan horse
- Codeforces Round #793 (Div. 2) A B C
- Computer composition and design work05 ——fifth verson
- What states do threads have?
- The first principle of thinking method
- C # converts the hexadecimal code form of text to text (ASCII)
- Using hidden Markov model to mark part of speech
- 基于报错的 SQL 注入
猜你喜欢

Touch screen setting for win7 system dual screen extended display

LeetCode-1189. Maximum number of balloons

Information content security experiment of Harbin Institute of Technology

SQL 注入-盲注

Jetson TX2 machine brushing jetpack4.2 (self test successful version)

使用 ms17-010 永恒之蓝漏洞对 win7 进行渗透及建立永久后门

RMB classification II

Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list

相机图像质量概述

Redis problem (I) -- cache penetration, breakdown, avalanche
随机推荐
【思维方法】之第一性原理
LeetCode-2034. Stock price fluctuation
LeetCode-1185. Day of the week
Multithreading mode (I) -- protective pause and join source code
GET 和 POST 的区别及留言板代码实现
(UE4 4.27) customize globalshader
Redis data structure (VIII) -- Geo
PHP 读写 COOKIE
Automatic modeling of Interchange
Script for unity3d to recursively search for a node with a specific name from all child nodes of a node
RMB classification II
LeetCode-1154. Day of the year
The difference between get and post and the code implementation of message board
Whether the modification of basic type and reference type is valid
Overview of camera image quality
PHP一句话木马深度详细剖析
RNN model
Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
Reentrantlock underlying AQS source code analysis
The unity3d script searches for colliders with overlaps within the specified radius