controller中参数带有@RequestBody,postman中请求是 raw,json。html的格式如下:
var settings = {
"url": "",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": JSON.stringify({
"name": ""
}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});