application/x-www-form-urlencoded or Application/json?
What is the format of Get and POST?
How do I get these values in the background?
How do I send these requests using AJAX or postman?
11.2.3 To perform a rest action:
A) GET, post method, according to the request header Content-type value to determine:
application/x-www-form-urlencoded, Optional (that is, not necessary, because the data of this situation @requestparam, @ModelAttribute can also be processed, of course @requestbody can also handle);
Multipart/form-data, cannot be processed (i.e. using @requestbody cannot process data in this format);
Other formats must be (other formats include application/json,application/xml, etc.). Data in these formats must be handled using @requestbody);
B) When the put method is submitted, it is judged by the value of the request header Content-type
Application/x-www-form-urlencoded, must;
Multipart/form-data, unable to deal with;
Other formats, you must
public void Putuser (@RequestBody final userwsdto user) throws duplicateuidexception{}
Spring Learning 12 application/x-www-form-urlencoded or Application/json