Н
Size: a a a
Н
Н
Н
Н
C
C
Н
Н
Н
Н
RM
return "redirect:/my/awesome/page";Н
return "redirect:/my/awesome/page";RM
Н
$.ajax({
url: "save",
method: "PUT",
data: JSON.stringify(model),
contentType:"application/json; charset=utf-8",
dataType:"json",
success: function (returnedData) {
alert("saveWithValidation called:");
console.log("saveWithValidation called: ", returnedData);
},
error: function (e) {
alert("ERROR saveWithValidation getting: " + e);
console.log("ERROR saveWithValidation getting: ", e);
}
});Н
Н
@RequestMapping(value = "/save", method = {RequestMethod.PUT})
public String modelSave(@RequestBody Model model) {
//do something
return "redirect:/page";
}Н
"{"timestamp":1554395488359,"status":405,"error":"Method Not Allowed","message":"Request method 'PUT' not supported","path":"/page"}"RM
RM
RM
return "redirect:/my/awesome/page";