Two ways request 051_ajax

application / x-www-form-urlencoded: This is the default request mode, data is transmitted to the key according to the request data, the data can be acquired separately SPRINGMVC.

application / json: This is the string data sent in accordance with json string format. SpringMVC need @RequestBody notes accepted parameters, and then alone can not get the data.

 

Guess you like

Origin www.cnblogs.com/pogusanqian/p/12515243.html